|
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
|
Graph Statistics Sequence. More...
#include <gstat.h>

Public Member Functions | |
| TGStatVec (const TTmUnit &_TmUnit=tmu1Sec) | |
| TGStatVec (const TTmUnit &_TmUnit, const TFSet &TakeGrowthStat) | |
| TGStatVec (const TGStatVec &GStat) | |
| TGStatVec (TSIn &SIn) | |
| void | Save (TSOut &SOut) const |
| TGStatVec & | operator= (const TGStatVec &GStat) |
| PGStat | Add () |
| PGStat | Add (const TSecTm &Time, const TStr &GraphNm=TStr()) |
| void | Add (const PGStat &Growth) |
| void | Add (const PNGraph &Graph, const TSecTm &Time, const TStr &GraphNm=TStr()) |
| void | Add (const PUNGraph &Graph, const TSecTm &Time, const TStr &GraphNm=TStr()) |
| void | Add (const PNEGraph &Graph, const TSecTm &Time, const TStr &GraphNm=TStr()) |
| void | Clr () |
| void | Sort (const TGStatVal &SortBy=gsvNodes, const bool &Asc=true) |
| int | Len () const |
| bool | Empty () const |
| PGStat | operator[] (const int &ValN) const |
| PGStat | At (const int &ValN) const |
| PGStat | Last () const |
| const TGStatV & | GetGStatV () const |
| int | GetTime (const int &ValN) const |
| void | Del (const int &ValN) |
| void | DelLast () |
| void | DelBefore (const TSecTm &Tm) |
| void | DelAfter (const TSecTm &Tm) |
| void | DelSmallNodes (const int &MinNodes) |
| void | SetTmUnit (const TTmUnit &TimeUnit) |
| TTmUnit | GetTmUnit () const |
| void | SetTakeStat (const TFSet &TakeStatSet) |
| bool | HasVal (const TGStatVal &Stat) const |
| bool | HasDistr (const TGStatDistr &Stat) const |
| void | GetValV (const TGStatVal &XVal, const TGStatVal &YVal, TFltPrV &ValV) const |
| PGStat | GetAvgGStat (const bool &ClipAt1=false) |
| void | Plot (const TGStatVal &XVal, const TGStatVal &YVal, const TStr &OutFNm, TStr &Desc, const TGpScaleTy &Scale=gpsAuto, const bool &PowerFit=false) const |
| void | PlotAllVsX (const TGStatVal &XVal, const TStr &OutFNm, TStr Desc=TStr(), const TGpScaleTy &Scale=gpsAuto, const bool &PowerFit=false) const |
| void | ImposeDistr (const TGStatDistr &Distr, const TStr &FNmPref, TStr Desc=TStr(), const bool &ExpBin=false, const bool &PowerFit=false, const TGpSeriesTy &PlotWith=gpwLinesPoints, const TStr &Style="") const |
| void | SaveTxt (const TStr &FNmPref, const TStr &Desc) const |
Static Public Member Functions | |
| static PGStatVec | New (const TTmUnit &_TmUnit=tmu1Sec) |
| static PGStatVec | New (const TTmUnit &_TmUnit, const TFSet &TakeGrowthStat) |
| static PGStatVec | Load (TSIn &SIn) |
Static Public Attributes | |
| static uint | MinNodesEdges = 10 |
Private Attributes | |
| TCRef | CRef |
| TTmUnit | TmUnit |
| TFSet | StatFSet |
| TGStatV | GStatV |
Friends | |
| class | TPt< TGStatVec > |
| PGStat TGStatVec::Add | ( | ) |
Definition at line 449 of file gstat.cpp.
References TVec< TVal, TSizeTy >::Add(), GStatV, TVec< TVal, TSizeTy >::Last(), and TGStat::New().
Referenced by Add(), and TMAGFitBern::PlotProperties().


Definition at line 454 of file gstat.cpp.
References TVec< TVal, TSizeTy >::Add(), GStatV, TVec< TVal, TSizeTy >::Last(), and TGStat::New().

|
inline |
Definition at line 176 of file gstat.h.
References TVec< TVal, TSizeTy >::Add(), and GStatV.

Definition at line 459 of file gstat.cpp.
References Add(), TNGraph::GetNodes(), MinNodesEdges, TGStat::New(), and StatFSet.

Definition at line 467 of file gstat.cpp.
References Add(), TUNGraph::GetNodes(), MinNodesEdges, TGStat::New(), and StatFSet.

Definition at line 475 of file gstat.cpp.
References Add(), MinNodesEdges, TGStat::New(), and StatFSet.

|
inline |
Definition at line 186 of file gstat.h.
References GStatV.
Referenced by DelAfter(), DelBefore(), DelSmallNodes(), GetTime(), GetValV(), ImposeDistr(), TMAGFitBern::PlotProperties(), and SaveTxt().

|
inline |
Definition at line 180 of file gstat.h.
References TVec< TVal, TSizeTy >::Clr(), and GStatV.

|
inline |
Definition at line 191 of file gstat.h.
References TVec< TVal, TSizeTy >::Del(), and GStatV.

| void TGStatVec::DelAfter | ( | const TSecTm & | Tm | ) |
Definition at line 495 of file gstat.cpp.
References TVec< TVal, TSizeTy >::Add(), At(), GStatV, Len(), and TVec< TVal, TSizeTy >::Swap().

| void TGStatVec::DelBefore | ( | const TSecTm & | Tm | ) |
Definition at line 487 of file gstat.cpp.
References TVec< TVal, TSizeTy >::Add(), At(), GStatV, Len(), and TVec< TVal, TSizeTy >::Swap().

|
inline |
Definition at line 192 of file gstat.h.
References TVec< TVal, TSizeTy >::DelLast(), and GStatV.

| void TGStatVec::DelSmallNodes | ( | const int & | MinNodes | ) |
Definition at line 503 of file gstat.cpp.
References TVec< TVal, TSizeTy >::Add(), At(), GStatV, Len(), and TVec< TVal, TSizeTy >::Swap().

|
inline |
Definition at line 184 of file gstat.h.
References TVec< TVal, TSizeTy >::Empty(), and GStatV.

| PGStat TGStatVec::GetAvgGStat | ( | const bool & | ClipAt1 = false | ) |
Definition at line 523 of file gstat.cpp.
References GStatV, and TGStat::New().

|
inline |
|
inline |
|
inline |
Definition at line 511 of file gstat.cpp.
References TVec< TVal, TSizeTy >::Add(), At(), TVec< TVal, TSizeTy >::Gen(), GetTime(), gsvIndex, gsvTime, Len(), and TVec< TVal, TSizeTy >::Sort().
Referenced by Plot().


|
inline |
Definition at line 201 of file gstat.h.
References TFSet::In(), and StatFSet.
Referenced by ImposeDistr().


|
inline |
Definition at line 200 of file gstat.h.
References TFSet::In(), and StatFSet.
Referenced by Plot().


| void TGStatVec::ImposeDistr | ( | const TGStatDistr & | Distr, |
| const TStr & | FNmPref, | ||
| TStr | Desc = TStr(), |
||
| const bool & | ExpBin = false, |
||
| const bool & | PowerFit = false, |
||
| const TGpSeriesTy & | PlotWith = gpwLinesPoints, |
||
| const TStr & | Style = "" |
||
| ) | const |
Definition at line 559 of file gstat.cpp.
References TGnuPlot::AddPlot(), TGnuPlot::AddPwrFit(), At(), TStr::CStr(), TStr::Empty(), TStr::Fmt(), TStr::GetUc(), gpwLines, gsdMx, gsdUndef, HasDistr(), Last(), Len(), TGnuPlot::MakeExpBins(), TGnuPlot::SavePng(), TGnuPlot::SetScale(), TGnuPlot::SetXYLabel(), TQuad< TVal1, TVal2, TVal3, TVal4 >::Val1, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val2, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val3, and TQuad< TVal1, TVal2, TVal3, TVal4 >::Val4.

|
inline |
Definition at line 187 of file gstat.h.
References GStatV, and TVec< TVal, TSizeTy >::Last().
Referenced by ImposeDistr(), Plot(), and PlotAllVsX().


|
inline |
Definition at line 183 of file gstat.h.
References GStatV, and TVec< TVal, TSizeTy >::Len().
Referenced by DelAfter(), DelBefore(), DelSmallNodes(), GetValV(), ImposeDistr(), TMAGFitBern::PlotProperties(), and SaveTxt().


Definition at line 169 of file gstat.h.
References TGStatVec().

Definition at line 426 of file gstat.cpp.
References TGStatVec().
Referenced by TFfGGen::GenFFGraphs(), TTimeNet::PlotMissingPast(), and TTimeNENet::TimeGrowth().


Definition at line 430 of file gstat.cpp.
References TGStatVec().

|
inline |
| void TGStatVec::Plot | ( | const TGStatVal & | XVal, |
| const TGStatVal & | YVal, | ||
| const TStr & | OutFNm, | ||
| TStr & | Desc, | ||
| const TGpScaleTy & | Scale = gpsAuto, |
||
| const bool & | PowerFit = false |
||
| ) | const |
Definition at line 529 of file gstat.cpp.
References TGnuPlot::AddPlot(), TGnuPlot::AddPwrFit(), TStr::CStr(), TStr::Empty(), TStr::Fmt(), TGStat::GetValStr(), GetValV(), gpwLinesPoints, HasVal(), Last(), TGnuPlot::SavePng(), TGnuPlot::SetScale(), and TGnuPlot::SetXYLabel().
Referenced by PlotAllVsX().


| void TGStatVec::PlotAllVsX | ( | const TGStatVal & | XVal, |
| const TStr & | OutFNm, | ||
| TStr | Desc = TStr(), |
||
| const TGpScaleTy & | Scale = gpsAuto, |
||
| const bool & | PowerFit = false |
||
| ) | const |
Definition at line 548 of file gstat.cpp.
References gsvEffDiamDev, gsvEffWccDiamDev, gsvFullDiamDev, gsvFullWccDiamDev, gsvMx, gsvNone, TFSet::In(), Last(), and Plot().

| void TGStatVec::Save | ( | TSOut & | SOut | ) | const |
Definition at line 434 of file gstat.cpp.
References GStatV, TFSet::Save(), TVec< TVal, TSizeTy >::Save(), TInt::Save(), StatFSet, and TmUnit.

Definition at line 584 of file gstat.cpp.
References THashSet< TKey, THashFunc >::AddKey(), At(), TStr::CStr(), TStr::Fmt(), THashSet< TKey, THashFunc >::GetKeyV(), TGStat::GetTmStr(), TTmInfo::GetTmUnitStr(), TGStat::GetVal(), TGStat::GetValStr(), gsvMx, gsvNone, Len(), TVec< TVal, TSizeTy >::Len(), TVec< TVal, TSizeTy >::Sort(), and TmUnit.

|
inline |
|
inline |
Definition at line 483 of file gstat.cpp.
References GStatV, and TVec< TVal, TSizeTy >::SortCmp().

|
private |
Definition at line 162 of file gstat.h.
Referenced by Add(), At(), Clr(), Del(), DelAfter(), DelBefore(), DelLast(), DelSmallNodes(), Empty(), GetAvgGStat(), GetGStatV(), Last(), Len(), operator=(), operator[](), Save(), and Sort().
|
static |
|
private |
Definition at line 161 of file gstat.h.
Referenced by Add(), HasDistr(), HasVal(), operator=(), Save(), SetTakeStat(), and TGStatVec().
|
private |
Definition at line 160 of file gstat.h.
Referenced by GetTime(), GetTmUnit(), operator=(), Save(), SaveTxt(), and SetTmUnit().