SNAP Library 4.1, User Reference
2018-07-26 16:30:42
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <cascdynetinf.h>
Public Member Functions | |
TNIBs () | |
TNIBs (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
void | LoadCascadesTxt (TSIn &SIn) |
void | LoadGroundTruthTxt (TSIn &SIn) |
void | LoadGroundTruthNodesTxt (TSIn &SIn) |
void | LoadInferredTxt (TSIn &SIn) |
void | LoadInferredNodesTxt (TSIn &SIn) |
void | SetTotalTime (const float &tt) |
void | SetModel (const TModel &model) |
void | SetWindow (const double &window) |
void | SetDelta (const double &delta) |
void | SetK (const double &k) |
void | SetGamma (const double &gamma) |
void | SetAging (const double &aging) |
void | SetRegularizer (const TRegularizer ®) |
void | SetMu (const double &mu) |
void | SetTolerance (const double &tol) |
void | SetMaxAlpha (const double &ma) |
void | SetMinAlpha (const double &ma) |
void | SetInitAlpha (const double &ia) |
void | AddCasc (const TStr &CascStr, const TModel &Model=EXP) |
void | AddCasc (const TCascade &Cascade) |
void | AddCasc (const TIntFltH &Cascade, const int &CId=-1, const TModel &Model=EXP) |
void | GenCascade (TCascade &C) |
bool | IsCascade (int c) |
TCascade & | GetCasc (int c) |
int | GetCascs () |
int | GetCascadeId (const TStr &Cascade) |
int | GetNodes () |
void | AddNodeNm (const int &NId, const TNodeInfo &Info) |
TStr | GetNodeNm (const int &NId) const |
TNodeInfo | GetNodeInfo (const int &NId) const |
bool | IsNodeNm (const int &NId) const |
void | SortNodeNmByVol (const bool &asc=false) |
void | AddDomainNm (const TStr &Domain, const int &DomainId=-1) |
bool | IsDomainNm (const TStr &Domain) const |
int | GetDomainId (const TStr &Domain) |
void | GetGroundTruthGraphAtT (const double &Step, PNGraph &GraphAtT) |
void | GetGroundTruthNetworkAtT (const double &Step, PStrFltNEDNet &NetworkAtT) |
void | GetInferredGraphAtT (const double &Step, PNGraph &GraphAtT) |
void | GetInferredNetworkAtT (const double &Step, PStrFltNEDNet &NetworkAtT) |
void | Reset () |
void | Init (const TFltV &Steps) |
void | SG (const int &NId, const int &Iters, const TFltV &Steps, const TSampling &Sampling, const TStr &ParamSampling=TStr(""), const bool &PlotPerformance=false) |
void | BSG (const int &NId, const int &Iters, const TFltV &Steps, const int &BatchLen, const TSampling &Sampling, const TStr &ParamSampling=TStr(""), const bool &PlotPerformance=false) |
void | FG (const int &NId, const int &Iters, const TFltV &Steps) |
void | UpdateDiff (const TOptMethod &OptMethod, const int &NId, TCascade &Cascade, TIntPrV &AlphasToUpdate, const double &CurrentTime=TFlt::Mx) |
void | find_C (int t, TFltV &x, TFltVV &C, const int &k, const double &s, const double &gamma, const double &T) |
void | find_min_state (TFltVV &C, TIntV &states, const int &k, const double &s, const double &gamma, const double &T) |
void | LabelBurstAutomaton (const int &SrcId, const int &DstId, TIntV &state_labels, TFltV &state_times, const bool &inferred=false, const int &k=5, const double &s=2.0, const double &gamma=1.0, const TSecTm &MinTime=TSecTm(), const TSecTm &MaxTime=TSecTm()) |
void | ComputePerformanceNId (const int &NId, const int &Step, const TFltV &Steps) |
void | SaveInferredPajek (const TStr &OutFNm, const double &Step, const TIntV &NIdV=TIntV()) |
void | SaveInferred (const TStr &OutFNm, const TIntV &NIdV=TIntV()) |
void | SaveInferred (const TStr &OutFNm, const double &Step, const TIntV &NIdV=TIntV()) |
void | SaveInferredEdges (const TStr &OutFNm) |
void | SaveGroundTruthPajek (const TStr &OutFNm, const double &Step) |
void | SaveGroundTruth (const TStr &OutFNm) |
void | SaveSites (const TStr &OutFNm, const TIntFltVH &CascadesPerNode=TIntFltVH()) |
void | SaveCascades (const TStr &OutFNm) |
Definition at line 130 of file cascdynetinf.h.
|
inline |
Definition at line 173 of file cascdynetinf.h.
|
inline |
Definition at line 174 of file cascdynetinf.h.
Definition at line 147 of file cascdynetinf.cpp.
|
inline |
Definition at line 205 of file cascdynetinf.h.
Definition at line 170 of file cascdynetinf.cpp.
|
inline |
Definition at line 222 of file cascdynetinf.h.
|
inline |
Definition at line 215 of file cascdynetinf.h.
void TNIBs::BSG | ( | const int & | NId, |
const int & | Iters, | ||
const TFltV & | Steps, | ||
const int & | BatchLen, | ||
const TSampling & | Sampling, | ||
const TStr & | ParamSampling = TStr("") , |
||
const bool & | PlotPerformance = false |
||
) |
Definition at line 501 of file cascdynetinf.cpp.
void TNIBs::ComputePerformanceNId | ( | const int & | NId, |
const int & | Step, | ||
const TFltV & | Steps | ||
) |
Definition at line 918 of file cascdynetinf.cpp.
void TNIBs::FG | ( | const int & | NId, |
const int & | Iters, | ||
const TFltV & | Steps | ||
) |
Definition at line 631 of file cascdynetinf.cpp.
void TNIBs::find_C | ( | int | t, |
TFltV & | x, | ||
TFltVV & | C, | ||
const int & | k, | ||
const double & | s, | ||
const double & | gamma, | ||
const double & | T | ||
) |
Definition at line 835 of file cascdynetinf.cpp.
void TNIBs::find_min_state | ( | TFltVV & | C, |
TIntV & | states, | ||
const int & | k, | ||
const double & | s, | ||
const double & | gamma, | ||
const double & | T | ||
) |
Definition at line 865 of file cascdynetinf.cpp.
void TNIBs::GenCascade | ( | TCascade & | C | ) |
Definition at line 180 of file cascdynetinf.cpp.
|
inline |
Definition at line 209 of file cascdynetinf.h.
|
inline |
Definition at line 211 of file cascdynetinf.h.
|
inline |
Definition at line 210 of file cascdynetinf.h.
|
inline |
Definition at line 224 of file cascdynetinf.h.
void TNIBs::GetGroundTruthGraphAtT | ( | const double & | Step, |
PNGraph & | GraphAtT | ||
) |
Definition at line 279 of file cascdynetinf.cpp.
void TNIBs::GetGroundTruthNetworkAtT | ( | const double & | Step, |
PStrFltNEDNet & | NetworkAtT | ||
) |
Definition at line 295 of file cascdynetinf.cpp.
void TNIBs::GetInferredGraphAtT | ( | const double & | Step, |
PNGraph & | GraphAtT | ||
) |
Definition at line 311 of file cascdynetinf.cpp.
void TNIBs::GetInferredNetworkAtT | ( | const double & | Step, |
PStrFltNEDNet & | NetworkAtT | ||
) |
Definition at line 328 of file cascdynetinf.cpp.
|
inline |
Definition at line 217 of file cascdynetinf.h.
|
inline |
Definition at line 216 of file cascdynetinf.h.
|
inline |
Definition at line 214 of file cascdynetinf.h.
void TNIBs::Init | ( | const TFltV & | Steps | ) |
Definition at line 347 of file cascdynetinf.cpp.
|
inline |
Definition at line 208 of file cascdynetinf.h.
|
inline |
Definition at line 223 of file cascdynetinf.h.
|
inline |
Definition at line 218 of file cascdynetinf.h.
void TNIBs::LabelBurstAutomaton | ( | const int & | SrcId, |
const int & | DstId, | ||
TIntV & | state_labels, | ||
TFltV & | state_times, | ||
const bool & | inferred = false , |
||
const int & | k = 5 , |
||
const double & | s = 2.0 , |
||
const double & | gamma = 1.0 , |
||
const TSecTm & | MinTime = TSecTm() , |
||
const TSecTm & | MaxTime = TSecTm() |
||
) |
Definition at line 886 of file cascdynetinf.cpp.
void TNIBs::LoadCascadesTxt | ( | TSIn & | SIn | ) |
Definition at line 4 of file cascdynetinf.cpp.
void TNIBs::LoadGroundTruthNodesTxt | ( | TSIn & | SIn | ) |
Definition at line 63 of file cascdynetinf.cpp.
void TNIBs::LoadGroundTruthTxt | ( | TSIn & | SIn | ) |
Definition at line 18 of file cascdynetinf.cpp.
void TNIBs::LoadInferredNodesTxt | ( | TSIn & | SIn | ) |
Definition at line 128 of file cascdynetinf.cpp.
void TNIBs::LoadInferredTxt | ( | TSIn & | SIn | ) |
Definition at line 83 of file cascdynetinf.cpp.
void TNIBs::Reset | ( | ) |
Definition at line 370 of file cascdynetinf.cpp.
|
inline |
Definition at line 175 of file cascdynetinf.h.
void TNIBs::SaveCascades | ( | const TStr & | OutFNm | ) |
Definition at line 1168 of file cascdynetinf.cpp.
void TNIBs::SaveGroundTruth | ( | const TStr & | OutFNm | ) |
Definition at line 1105 of file cascdynetinf.cpp.
void TNIBs::SaveGroundTruthPajek | ( | const TStr & | OutFNm, |
const double & | Step | ||
) |
Definition at line 1133 of file cascdynetinf.cpp.
Definition at line 1003 of file cascdynetinf.cpp.
Definition at line 1045 of file cascdynetinf.cpp.
void TNIBs::SaveInferredEdges | ( | const TStr & | OutFNm | ) |
Definition at line 1073 of file cascdynetinf.cpp.
void TNIBs::SaveInferredPajek | ( | const TStr & | OutFNm, |
const double & | Step, | ||
const TIntV & | NIdV = TIntV() |
||
) |
Definition at line 981 of file cascdynetinf.cpp.
Definition at line 1153 of file cascdynetinf.cpp.
|
inline |
Definition at line 195 of file cascdynetinf.h.
|
inline |
Definition at line 190 of file cascdynetinf.h.
|
inline |
Definition at line 194 of file cascdynetinf.h.
|
inline |
Definition at line 201 of file cascdynetinf.h.
|
inline |
Definition at line 191 of file cascdynetinf.h.
|
inline |
Definition at line 199 of file cascdynetinf.h.
|
inline |
Definition at line 200 of file cascdynetinf.h.
|
inline |
Definition at line 186 of file cascdynetinf.h.
|
inline |
Definition at line 197 of file cascdynetinf.h.
|
inline |
Definition at line 196 of file cascdynetinf.h.
|
inline |
Definition at line 198 of file cascdynetinf.h.
|
inline |
Definition at line 185 of file cascdynetinf.h.
|
inline |
Definition at line 187 of file cascdynetinf.h.
void TNIBs::SG | ( | const int & | NId, |
const int & | Iters, | ||
const TFltV & | Steps, | ||
const TSampling & | Sampling, | ||
const TStr & | ParamSampling = TStr("") , |
||
const bool & | PlotPerformance = false |
||
) |
Definition at line 381 of file cascdynetinf.cpp.
|
inline |
Definition at line 219 of file cascdynetinf.h.
void TNIBs::UpdateDiff | ( | const TOptMethod & | OptMethod, |
const int & | NId, | ||
TCascade & | Cascade, | ||
TIntPrV & | AlphasToUpdate, | ||
const double & | CurrentTime = TFlt::Mx |
||
) |
Definition at line 721 of file cascdynetinf.cpp.
TFltPrV TNIBs::Accuracy |
Definition at line 170 of file cascdynetinf.h.
TFlt TNIBs::Aging |
Definition at line 153 of file cascdynetinf.h.
TIntFltH TNIBs::AveDiffAlphas |
Definition at line 162 of file cascdynetinf.h.
TStrIntH TNIBs::CascadeIdH |
Definition at line 135 of file cascdynetinf.h.
Definition at line 132 of file cascdynetinf.h.
Definition at line 138 of file cascdynetinf.h.
TFlt TNIBs::Delta |
Definition at line 150 of file cascdynetinf.h.
Definition at line 163 of file cascdynetinf.h.
TStrIntH TNIBs::DomainsIdH |
Definition at line 134 of file cascdynetinf.h.
TFlt TNIBs::Gamma |
Definition at line 153 of file cascdynetinf.h.
TStrFltFltHNEDNet TNIBs::InferredNetwork |
Definition at line 158 of file cascdynetinf.h.
TFlt TNIBs::InitAlpha |
Definition at line 155 of file cascdynetinf.h.
TFlt TNIBs::K |
Definition at line 150 of file cascdynetinf.h.
TFltPrV TNIBs::MAE |
Definition at line 170 of file cascdynetinf.h.
TFlt TNIBs::MaxAlpha |
Definition at line 155 of file cascdynetinf.h.
TFlt TNIBs::MinAlpha |
Definition at line 155 of file cascdynetinf.h.
TModel TNIBs::Model |
Definition at line 144 of file cascdynetinf.h.
TFltPrV TNIBs::MSE |
Definition at line 170 of file cascdynetinf.h.
TFlt TNIBs::Mu |
Definition at line 153 of file cascdynetinf.h.
TStrFltFltHNEDNet TNIBs::Network |
Definition at line 141 of file cascdynetinf.h.
Definition at line 133 of file cascdynetinf.h.
TFltPrV TNIBs::PrecisionRecall |
Definition at line 169 of file cascdynetinf.h.
TRegularizer TNIBs::Regularizer |
Definition at line 154 of file cascdynetinf.h.
TIntIntPrH TNIBs::SampledCascadesH |
Definition at line 166 of file cascdynetinf.h.
TFlt TNIBs::Tol |
Definition at line 155 of file cascdynetinf.h.
TIntFltH TNIBs::TotalCascadesAlpha |
Definition at line 159 of file cascdynetinf.h.
TFlt TNIBs::TotalTime |
Definition at line 147 of file cascdynetinf.h.
TFlt TNIBs::Window |
Definition at line 147 of file cascdynetinf.h.