SNAP Library 3.0, User Reference
2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <kronecker.h>
Public Member Functions | |
TKronMtx () | |
TKronMtx (const int &Dim) | |
TKronMtx (const TFltV &SeedMatrix) | |
TKronMtx (const TKronMtx &Kronecker) | |
void | SaveTxt (const TStr &OutFNm) const |
TKronMtx & | operator= (const TKronMtx &Kronecker) |
bool | operator== (const TKronMtx &Kronecker) const |
int | GetPrimHashCd () const |
int | GetSecHashCd () const |
int | GetDim () const |
int | Len () const |
bool | Empty () const |
bool | IsProbMtx () const |
TFltV & | GetMtx () |
const TFltV & | GetMtx () const |
void | SetMtx (const TFltV &ParamV) |
void | SetRndMtx (const int &MtxDim, const double &MinProb=0.0) |
void | PutAllMtx (const double &Val) |
void | GenMtx (const int &Dim) |
void | SetEpsMtx (const double &Eps1, const double &Eps0, const int &Eps1Val=1, const int &Eps0Val=0) |
void | SetForEdges (const int &Nodes, const int &Edges) |
void | AddRndNoise (const double &SDev) |
TStr | GetMtxStr () const |
const double & | At (const int &Row, const int &Col) const |
double & | At (const int &Row, const int &Col) |
const double & | At (const int &ValN) const |
double & | At (const int &ValN) |
int | GetNodes (const int &NIter) const |
int | GetEdges (const int &NIter) const |
int | GetKronIter (const int &Nodes) const |
int | GetNZeroK (const PNGraph &Graph) const |
double | GetEZero (const int &Edges, const int &KronIter) const |
double | GetMtxSum () const |
double | GetRowSum (const int &RowId) const |
double | GetColSum (const int &ColId) const |
void | ToOneMinusMtx () |
void | GetLLMtx (TKronMtx &LLMtx) |
void | GetProbMtx (TKronMtx &ProbMtx) |
void | Swap (TKronMtx &KronMtx) |
double | GetEdgeProb (int NId1, int NId2, const int &NKronIters) const |
double | GetNoEdgeProb (int NId1, int NId2, const int &NKronIters) const |
double | GetEdgeLL (int NId1, int NId2, const int &NKronIters) const |
double | GetNoEdgeLL (int NId1, int NId2, const int &NKronIters) const |
double | GetApxNoEdgeLL (int NId1, int NId2, const int &NKronIters) const |
bool | IsEdgePlace (int NId1, int NId2, const int &NKronIters, const double &ProbTresh) const |
double | GetEdgeDLL (const int &ParamId, int NId1, int NId2, const int &NKronIters) const |
double | GetNoEdgeDLL (const int &ParamId, int NId1, int NId2, const int &NKronIters) const |
double | GetApxNoEdgeDLL (const int &ParamId, int NId1, int NId2, const int &NKronIters) const |
double | GetEdgeProb (const uint &NId1Sig, const uint &NId2Sig, const int &NIter) const |
PNGraph | GenThreshGraph (const double &Thresh) const |
PNGraph | GenRndGraph (const double &RndFact=1.0) const |
void | Dump (const TStr &MtxNm=TStr(), const bool &Sort=false) const |
Static Public Member Functions | |
static uint | GetNodeSig (const double &OneProb=0.5) |
static int | GetKronIter (const int &GNodes, const int &SeedMtxSz) |
static PNGraph | GenKronecker (const TKronMtx &SeedMtx, const int &NIter, const bool &IsDir, const int &Seed=0) |
static PNGraph | GenFastKronecker (const TKronMtx &SeedMtx, const int &NIter, const bool &IsDir, const int &Seed=0) |
static PNGraph | GenFastKronecker (const TKronMtx &SeedMtx, const int &NIter, const int &Edges, const bool &IsDir, const int &Seed=0) |
static PNGraph | GenDetKronecker (const TKronMtx &SeedMtx, const int &NIter, const bool &IsDir) |
static void | PlotCmpGraphs (const TKronMtx &SeedMtx, const PNGraph &Graph, const TStr &OutFNm, const TStr &Desc) |
static void | PlotCmpGraphs (const TKronMtx &SeedMtx1, const TKronMtx &SeedMtx2, const PNGraph &Graph, const TStr &OutFNm, const TStr &Desc) |
static void | PlotCmpGraphs (const TVec< TKronMtx > &SeedMtxV, const PNGraph &Graph, const TStr &FNmPref, const TStr &Desc) |
static void | KronMul (const TKronMtx &LeftPt, const TKronMtx &RightPt, TKronMtx &OutMtx) |
static void | KronSum (const TKronMtx &LeftPt, const TKronMtx &RightPt, TKronMtx &OutMtx) |
static void | KronPwr (const TKronMtx &KronPt, const int &NIter, TKronMtx &OutMtx) |
static double | GetAvgAbsErr (const TKronMtx &Kron1, const TKronMtx &Kron2) |
static double | GetAvgFroErr (const TKronMtx &Kron1, const TKronMtx &Kron2) |
static TKronMtx | GetMtx (TStr MatlabMtxStr) |
static TKronMtx | GetRndMtx (const int &Dim, const double &MinProb) |
static TKronMtx | GetInitMtx (const int &Dim, const int &Nodes, const int &Edges) |
static TKronMtx | GetInitMtx (const TStr &MtxStr, const int &Dim, const int &Nodes, const int &Edges) |
static TKronMtx | GetMtxFromNm (const TStr &MtxNm) |
static TKronMtx | LoadTxt (const TStr &MtxFNm) |
static void | PutRndSeed (const int &Seed) |
Static Public Attributes | |
static const double | NInf = -DBL_MAX |
static TRnd | Rnd = TRnd(0) |
Private Attributes | |
TInt | MtxDim |
TFltV | SeedMtx |
Definition at line 11 of file kronecker.h.
|
inline |
Definition at line 19 of file kronecker.h.
|
inline |
Definition at line 20 of file kronecker.h.
TKronMtx::TKronMtx | ( | const TFltV & | SeedMatrix | ) |
Definition at line 9 of file kronecker.cpp.
|
inline |
Definition at line 22 of file kronecker.h.
void TKronMtx::AddRndNoise | ( | const double & | SDev | ) |
Definition at line 69 of file kronecker.cpp.
|
inline |
Definition at line 46 of file kronecker.h.
|
inline |
Definition at line 47 of file kronecker.h.
|
inline |
Definition at line 48 of file kronecker.h.
|
inline |
Definition at line 49 of file kronecker.h.
Definition at line 636 of file kronecker.cpp.
|
inline |
Definition at line 32 of file kronecker.h.
|
static |
Definition at line 458 of file kronecker.cpp.
|
static |
Definition at line 349 of file kronecker.cpp.
|
static |
Definition at line 404 of file kronecker.cpp.
|
static |
Definition at line 312 of file kronecker.cpp.
|
inline |
Definition at line 40 of file kronecker.h.
PNGraph TKronMtx::GenRndGraph | ( | const double & | RndFact = 1.0 | ) | const |
Definition at line 295 of file kronecker.cpp.
PNGraph TKronMtx::GenThreshGraph | ( | const double & | Thresh | ) | const |
Definition at line 283 of file kronecker.cpp.
double TKronMtx::GetApxNoEdgeDLL | ( | const int & | ParamId, |
int | NId1, | ||
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 240 of file kronecker.cpp.
double TKronMtx::GetApxNoEdgeLL | ( | int | NId1, |
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 191 of file kronecker.cpp.
Definition at line 655 of file kronecker.cpp.
Definition at line 668 of file kronecker.cpp.
double TKronMtx::GetColSum | ( | const int & | ColId | ) | const |
Definition at line 154 of file kronecker.cpp.
|
inline |
Definition at line 30 of file kronecker.h.
double TKronMtx::GetEdgeDLL | ( | const int & | ParamId, |
int | NId1, | ||
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 207 of file kronecker.cpp.
double TKronMtx::GetEdgeLL | ( | int | NId1, |
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 175 of file kronecker.cpp.
double TKronMtx::GetEdgeProb | ( | int | NId1, |
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 161 of file kronecker.cpp.
double TKronMtx::GetEdgeProb | ( | const uint & | NId1Sig, |
const uint & | NId2Sig, | ||
const int & | NIter | ||
) | const |
Definition at line 271 of file kronecker.cpp.
int TKronMtx::GetEdges | ( | const int & | NIter | ) | const |
Definition at line 123 of file kronecker.cpp.
double TKronMtx::GetEZero | ( | const int & | Edges, |
const int & | KronIter | ||
) | const |
Definition at line 136 of file kronecker.cpp.
|
static |
Definition at line 705 of file kronecker.cpp.
|
static |
Definition at line 721 of file kronecker.cpp.
int TKronMtx::GetKronIter | ( | const int & | Nodes | ) | const |
Definition at line 127 of file kronecker.cpp.
|
static |
Definition at line 307 of file kronecker.cpp.
void TKronMtx::GetLLMtx | ( | TKronMtx & | LLMtx | ) |
Definition at line 98 of file kronecker.cpp.
|
inline |
Definition at line 35 of file kronecker.h.
|
inline |
Definition at line 36 of file kronecker.h.
Definition at line 681 of file kronecker.cpp.
Definition at line 753 of file kronecker.cpp.
TStr TKronMtx::GetMtxStr | ( | ) | const |
Definition at line 80 of file kronecker.cpp.
double TKronMtx::GetMtxSum | ( | ) | const |
Definition at line 140 of file kronecker.cpp.
int TKronMtx::GetNodes | ( | const int & | NIter | ) | const |
Definition at line 119 of file kronecker.cpp.
|
static |
Definition at line 262 of file kronecker.cpp.
double TKronMtx::GetNoEdgeDLL | ( | const int & | ParamId, |
int | NId1, | ||
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 220 of file kronecker.cpp.
double TKronMtx::GetNoEdgeLL | ( | int | NId1, |
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 186 of file kronecker.cpp.
double TKronMtx::GetNoEdgeProb | ( | int | NId1, |
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 171 of file kronecker.cpp.
int TKronMtx::GetNZeroK | ( | const PNGraph & | Graph | ) | const |
Definition at line 132 of file kronecker.cpp.
|
inline |
Definition at line 26 of file kronecker.h.
void TKronMtx::GetProbMtx | ( | TKronMtx & | ProbMtx | ) |
Definition at line 106 of file kronecker.cpp.
|
static |
Definition at line 699 of file kronecker.cpp.
double TKronMtx::GetRowSum | ( | const int & | RowId | ) | const |
Definition at line 147 of file kronecker.cpp.
|
inline |
Definition at line 27 of file kronecker.h.
bool TKronMtx::IsEdgePlace | ( | int | NId1, |
int | NId2, | ||
const int & | NKronIters, | ||
const double & | ProbTresh | ||
) | const |
Definition at line 196 of file kronecker.cpp.
bool TKronMtx::IsProbMtx | ( | ) | const |
Definition at line 33 of file kronecker.cpp.
|
static |
Definition at line 591 of file kronecker.cpp.
Definition at line 626 of file kronecker.cpp.
|
static |
Definition at line 607 of file kronecker.cpp.
|
inline |
Definition at line 31 of file kronecker.h.
Definition at line 768 of file kronecker.cpp.
Definition at line 25 of file kronecker.cpp.
|
inline |
Definition at line 25 of file kronecker.h.
|
static |
Definition at line 479 of file kronecker.cpp.
|
static |
!!
Definition at line 514 of file kronecker.cpp.
|
static |
Definition at line 556 of file kronecker.cpp.
|
inline |
Definition at line 39 of file kronecker.h.
|
inlinestatic |
Definition at line 108 of file kronecker.h.
void TKronMtx::SaveTxt | ( | const TStr & | OutFNm | ) | const |
Definition at line 14 of file kronecker.cpp.
void TKronMtx::SetEpsMtx | ( | const double & | Eps1, |
const double & | Eps0, | ||
const int & | Eps1Val = 1 , |
||
const int & | Eps0Val = 0 |
||
) |
Definition at line 50 of file kronecker.cpp.
void TKronMtx::SetForEdges | ( | const int & | Nodes, |
const int & | Edges | ||
) |
Definition at line 59 of file kronecker.cpp.
|
inline |
Definition at line 37 of file kronecker.h.
void TKronMtx::SetRndMtx | ( | const int & | MtxDim, |
const double & | MinProb = 0.0 |
||
) |
Definition at line 40 of file kronecker.cpp.
void TKronMtx::Swap | ( | TKronMtx & | KronMtx | ) |
Definition at line 114 of file kronecker.cpp.
void TKronMtx::ToOneMinusMtx | ( | ) |
Definition at line 91 of file kronecker.cpp.
|
private |
Definition at line 16 of file kronecker.h.
|
static |
Definition at line 13 of file kronecker.h.
Definition at line 14 of file kronecker.h.
|
private |
Definition at line 17 of file kronecker.h.