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 <cascdynetinf.h>
Public Member Functions | |
TCascade () | |
TCascade (const int &model) | |
TCascade (const int &cid, const int &model) | |
TCascade (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
void | Clr () |
int | GetId () |
int | Len () const |
int | LenBeforeT (const double &T) |
int | LenAfterT (const double &T) |
int | GetNode (const int &i) const |
THash< TInt, THitInfo >::TIter | BegI () const |
THash< TInt, THitInfo >::TIter | EndI () const |
int | GetModel () const |
double | GetTm (const int &NId) const |
double | GetMaxTm () const |
double | GetMinTm () const |
void | Add (const int &NId, const double &HitTm) |
void | Del (const int &NId) |
bool | IsNode (const int &NId) const |
void | Sort () |
bool | operator< (const TCascade &Cascade) const |
TCascade () | |
TCascade (const double &alpha) | |
TCascade (const double &alpha, const int &model) | |
TCascade (const double &alpha, const double &eps) | |
TCascade (const double &alpha, const int &model, const double &eps) | |
TCascade (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
void | Clr () |
int | Len () const |
int | GetNode (const int &i) const |
int | GetParent (const int NId) const |
double | GetAlpha () const |
double | GetTm (const int &NId) const |
void | Add (const int &NId, const double &HitTm) |
void | Del (const int &NId) |
bool | IsNode (const int &NId) const |
void | Sort () |
double | TransProb (const int &NId1, const int &NId2) const |
double | GetProb (const PNGraph &G) |
void | InitProb () |
double | UpdateProb (const int &N1, const int &N2, const bool &UpdateProb=false) |
Public Attributes | |
TInt | CId |
THash< TInt, THitInfo > | NIdHitH |
TInt | Model |
TFlt | CurProb |
TFlt | Alpha |
TFlt | Eps |
Definition at line 84 of file cascdynetinf.h.
|
inline |
Definition at line 90 of file cascdynetinf.h.
|
inline |
Definition at line 91 of file cascdynetinf.h.
|
inline |
Definition at line 92 of file cascdynetinf.h.
|
inline |
Definition at line 93 of file cascdynetinf.h.
|
inline |
Definition at line 26 of file cascnetinf.h.
|
inline |
Definition at line 27 of file cascnetinf.h.
|
inline |
Definition at line 28 of file cascnetinf.h.
|
inline |
Definition at line 29 of file cascnetinf.h.
|
inline |
Definition at line 30 of file cascnetinf.h.
|
inline |
Definition at line 31 of file cascnetinf.h.
|
inline |
Definition at line 39 of file cascnetinf.h.
References THash< TKey, TDat, THashFunc >::AddDat().
|
inline |
Definition at line 107 of file cascdynetinf.h.
References THash< TKey, TDat, THashFunc >::AddDat().
Referenced by TNetInfBs::AddCasc(), TNIBs::AddCasc(), TNetInfBs::GenCascade(), and TNIBs::GenCascade().
Definition at line 101 of file cascdynetinf.h.
References THash< TKey, TDat, THashFunc >::BegI().
Referenced by TNIBs::UpdateDiff().
|
inline |
Definition at line 33 of file cascnetinf.h.
References THash< TKey, TDat, THashFunc >::Clr().
|
inline |
Definition at line 95 of file cascdynetinf.h.
References THash< TKey, TDat, THashFunc >::Clr().
Referenced by TNetInfBs::GenCascade(), and TNIBs::GenCascade().
|
inline |
Definition at line 40 of file cascnetinf.h.
References THash< TKey, TDat, THashFunc >::DelKey().
|
inline |
Definition at line 108 of file cascdynetinf.h.
References THash< TKey, TDat, THashFunc >::DelKey().
Definition at line 102 of file cascdynetinf.h.
References THash< TKey, TDat, THashFunc >::EndI().
Referenced by TNIBs::UpdateDiff().
|
inline |
|
inline |
|
inline |
Definition at line 105 of file cascdynetinf.h.
References THash< TKey, TDat, THashFunc >::Len().
|
inline |
Definition at line 106 of file cascdynetinf.h.
Referenced by TNIBs::UpdateDiff().
|
inline |
|
inline |
Definition at line 35 of file cascnetinf.h.
References THash< TKey, TDat, THashFunc >::GetKey().
|
inline |
Definition at line 100 of file cascdynetinf.h.
References THash< TKey, TDat, THashFunc >::GetKey().
Referenced by GetProb().
|
inline |
Definition at line 36 of file cascnetinf.h.
References THash< TKey, TDat, THashFunc >::GetDat(), and THitInfo::Parent.
Referenced by UpdateProb().
double TCascade::GetProb | ( | const PNGraph & | G | ) |
Definition at line 17 of file cascnetinf.cpp.
References Eps, THash< TKey, TDat, THashFunc >::GetDat(), TNGraph::TNodeI::GetInDeg(), TNGraph::TNodeI::GetInNId(), TNGraph::GetNI(), GetNode(), GetTm(), IsNode(), Len(), NIdHitH, THitInfo::Parent, and TransProb().
|
inline |
Definition at line 38 of file cascnetinf.h.
References THash< TKey, TDat, THashFunc >::GetDat(), and THitInfo::Tm.
|
inline |
Definition at line 104 of file cascdynetinf.h.
References THash< TKey, TDat, THashFunc >::GetDat(), and THitInfo::Tm.
Referenced by GetProb(), TransProb(), TNIBs::UpdateDiff(), and UpdateProb().
void TCascade::InitProb | ( | ) |
|
inline |
Definition at line 41 of file cascnetinf.h.
References THash< TKey, TDat, THashFunc >::IsKey().
|
inline |
Definition at line 109 of file cascdynetinf.h.
References THash< TKey, TDat, THashFunc >::IsKey().
Referenced by GetProb(), TransProb(), TNIBs::UpdateDiff(), and UpdateProb().
|
inline |
Definition at line 34 of file cascnetinf.h.
References THash< TKey, TDat, THashFunc >::Len().
|
inline |
Definition at line 97 of file cascdynetinf.h.
References THash< TKey, TDat, THashFunc >::Len().
Referenced by TNetInfBs::GenCascade(), TNIBs::GenCascade(), GetProb(), InitProb(), operator<(), and TNetInfBs::SaveCascades().
|
inline |
Definition at line 99 of file cascdynetinf.h.
References THash< TKey, TDat, THashFunc >::Len().
|
inline |
Definition at line 98 of file cascdynetinf.h.
References THash< TKey, TDat, THashFunc >::Len().
|
inline |
Definition at line 111 of file cascdynetinf.h.
References Len().
|
inline |
Definition at line 32 of file cascnetinf.h.
References THash< TKey, TDat, THashFunc >::Save(), and TFlt::Save().
|
inline |
Definition at line 94 of file cascdynetinf.h.
References THash< TKey, TDat, THashFunc >::Save(), and TInt::Save().
|
inline |
Definition at line 42 of file cascnetinf.h.
References THash< TKey, TDat, THashFunc >::SortByDat().
|
inline |
Definition at line 110 of file cascdynetinf.h.
References THash< TKey, TDat, THashFunc >::SortByDat().
Referenced by TNetInfBs::AddCasc(), TNIBs::AddCasc(), TNetInfBs::GenCascade(), and TNIBs::GenCascade().
double TCascade::TransProb | ( | const int & | NId1, |
const int & | NId2 | ||
) | const |
Definition at line 4 of file cascnetinf.cpp.
References Alpha, Eps, GetTm(), IsNode(), Model, and TFlt::Val.
Referenced by GetProb(), and UpdateProb().
double TCascade::UpdateProb | ( | const int & | N1, |
const int & | N2, | ||
const bool & | UpdateProb = false |
||
) |
Definition at line 47 of file cascnetinf.cpp.
References CurProb, THash< TKey, TDat, THashFunc >::GetDat(), GetParent(), GetTm(), IsNode(), NIdHitH, THitInfo::Parent, and TransProb().
TFlt TCascade::Alpha |
Definition at line 23 of file cascnetinf.h.
Referenced by GetAlpha(), and TransProb().
TInt TCascade::CId |
Definition at line 86 of file cascdynetinf.h.
Referenced by TNIBs::AddCasc(), and GetId().
TFlt TCascade::CurProb |
Definition at line 23 of file cascnetinf.h.
Referenced by InitProb(), and UpdateProb().
TFlt TCascade::Eps |
Definition at line 23 of file cascnetinf.h.
Referenced by GetProb(), InitProb(), and TransProb().
TInt TCascade::Model |
Definition at line 88 of file cascdynetinf.h.
Referenced by GetModel(), and TransProb().
Definition at line 87 of file cascdynetinf.h.
Referenced by GetProb(), InitProb(), TNetInfBs::SaveCascades(), TNIBs::SaveCascades(), and UpdateProb().