SNAP Library 6.0, Developer Reference
2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <mag.h>
Public Member Functions | |
TMAGNodeBeta () | |
TMAGNodeBeta (const int &_Dim, const double &Alpha=1, const double &Beta=1) | |
TMAGNodeBeta (const TFltV &_AlphaV, const TFltV &_BetaV) | |
TMAGNodeBeta & | operator= (const TMAGNodeBeta &Dist) |
void | SetBeta (const int &Attr, const double &Alpha, const double &Beta) |
void | GetBeta (const int &Attr, double &Alpha, double &Beta) const |
void | SetBetaV (const TFltV &_AlphaV, const TFltV &_BetaV) |
void | GetBetaV (TFltV &_AlphaV, TFltV &_BetaV) const |
bool | GetMuV (TFltV &_MuV) const |
void | LoadTxt (const TStr &InFNm) |
void | SaveTxt (TStrV &OutStrV) const |
void | AttrGen (TIntVV &AttrVV, const int &NNodes) |
Static Public Attributes | |
static TRnd | Rnd = TRnd(0) |
Private Attributes | |
TFltV | AlphaV |
TFltV | BetaV |
TFltV | MuV |
TInt | Dim |
TBool | Dirty |
|
inline |
Definition at line 126 of file mag.h.
References TVec< TVal, TSizeTy >::PutAll().
void TMAGNodeBeta::AttrGen | ( | TIntVV & | AttrVV, |
const int & | NNodes | ||
) |
Definition at line 323 of file mag.cpp.
References AlphaV, TVVec< TVal, TSizeTy >::At(), BetaV, Dim, Dirty, TVVec< TVal, TSizeTy >::Gen(), TRnd::GetGammaDev(), IAssert, MuV, and TVVec< TVal, TSizeTy >::PutAll().
|
inline |
|
inline |
void TMAGNodeBeta::LoadTxt | ( | const TStr & | InFNm | ) |
Definition at line 343 of file mag.cpp.
References TVec< TVal, TSizeTy >::Add(), AlphaV, BetaV, TStr::CStr(), Dim, TVec< TVal, TSizeTy >::Gen(), TStr::GetFlt(), and IAssertR.
TMAGNodeBeta & TMAGNodeBeta::operator= | ( | const TMAGNodeBeta & | Dist | ) |
void TMAGNodeBeta::SaveTxt | ( | TStrV & | OutStrV | ) | const |
Definition at line 373 of file mag.cpp.
References TVec< TVal, TSizeTy >::Add(), AlphaV, BetaV, Dim, TStr::Fmt(), and TVec< TVal, TSizeTy >::Gen().
void TMAGNodeBeta::SetBeta | ( | const int & | Attr, |
const double & | Alpha, | ||
const double & | Beta | ||
) |
|
private |
Definition at line 119 of file mag.h.
Referenced by AttrGen(), GetBetaV(), LoadTxt(), operator=(), SaveTxt(), SetBeta(), and SetBetaV().
|
private |
Definition at line 120 of file mag.h.
Referenced by AttrGen(), GetBetaV(), LoadTxt(), operator=(), SaveTxt(), SetBeta(), and SetBetaV().
|
private |
Definition at line 122 of file mag.h.
Referenced by AttrGen(), LoadTxt(), operator=(), SaveTxt(), SetBeta(), and SetBetaV().
|
private |
Definition at line 123 of file mag.h.
Referenced by AttrGen(), GetMuV(), operator=(), SetBeta(), and SetBetaV().
|
private |
Definition at line 121 of file mag.h.
Referenced by AttrGen(), GetMuV(), and operator=().