SNAP Library 4.1, Developer Reference
2018-07-26 16:30:42
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <mag.h>
Public Member Functions | |
TMAGNodeBern () | |
TMAGNodeBern (const int &_Dim, const double &_Mu=0.5) | |
TMAGNodeBern (const TFltV &_MuV) | |
TMAGNodeBern (const TMAGNodeBern &Dist) | |
TMAGNodeBern & | operator= (const TMAGNodeBern &Dist) |
void | SetMuV (const TFltV &_MuV) |
const TFltV & | GetMuV () const |
void | SetMu (const int &Attr, const double &Prob) |
double | GetMu (const int &Attr) 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 | MuV |
TInt | Dim |
|
inline |
|
inline |
|
inline |
void TMAGNodeBern::AttrGen | ( | TIntVV & | AttrVV, |
const int & | NNodes | ||
) |
Definition at line 250 of file mag.cpp.
References TVVec< TVal, TSizeTy >::At(), Dim, TVVec< TVal, TSizeTy >::Gen(), IAssert, MuV, and TVVec< TVal, TSizeTy >::PutAll().
|
inline |
Definition at line 105 of file mag.h.
References MuV.
Referenced by TMAGFitBern::UpdateApxPhiMI(), TMAGFitBern::UpdateMu(), TMAGFitBern::UpdatePhi(), and TMAGFitBern::UpdatePhiMI().
|
inline |
Definition at line 103 of file mag.h.
References MuV.
Referenced by TMAGFitBern::ComputeApxAdjLL(), TMAGFitBern::ComputeApxLL(), TMAGFitBern::ComputeJointAdjLL(), TMAGFitBern::ComputeJointOneLL(), TMAGFitBern::DoEMAlg(), TMAGFitBern::GetMuV(), and TMAGFitBern::UpdateAffMtxV().
void TMAGNodeBern::LoadTxt | ( | const TStr & | InFNm | ) |
Definition at line 264 of file mag.cpp.
References TVec< TVal, TSizeTy >::Add(), TStr::CStr(), Dim, TVec< TVal, TSizeTy >::Gen(), TStr::GetFlt(), IAssertR, TVec< TVal, TSizeTy >::Len(), and MuV.
TMAGNodeBern & TMAGNodeBern::operator= | ( | const TMAGNodeBern & | Dist | ) |
void TMAGNodeBern::SaveTxt | ( | TStrV & | OutStrV | ) | const |
Definition at line 287 of file mag.cpp.
References TVec< TVal, TSizeTy >::Add(), Dim, TStr::Fmt(), TVec< TVal, TSizeTy >::Gen(), and MuV.
|
inline |
Definition at line 104 of file mag.h.
Referenced by TMAGFitBern::UpdateMu().
|
inline |
Definition at line 102 of file mag.h.
References MuV.
Referenced by TMAGFitBern::SetMuV().
|
private |
|
private |
Definition at line 90 of file mag.h.
Referenced by TMAGFitBern::RandomInit().