|
SNAP Library 2.4, Developer Reference
2015-05-11 19:40:56
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <xmath.h>

Public Member Functions | |
| TMom () | |
| TMom (const TMom &Mom) | |
| TMom (const TFltV &_ValV) | |
| TMom (TSIn &SIn) | |
| void | Save (TSOut &SOut) const |
| TMom & | operator= (const TMom &Mom) |
| bool | operator== (const TMom &Mom) const |
| bool | operator< (const TMom &Mom) const |
| void | Def () |
| bool | IsDef () const |
| void | Add (const TFlt &Val, const TFlt &Wgt=1) |
| double | GetWgt () const |
| int | GetVals () const |
| TFlt | GetVal (const int &ValN) const |
| bool | IsUsable () const |
| double | GetMn () const |
| double | GetMx () const |
| double | GetExtent () const |
| double | GetMean () const |
| double | GetVari () const |
| double | GetSDev () const |
| double | GetSErr () const |
| double | GetMedian () const |
| double | GetQuart1 () const |
| double | GetQuart3 () const |
| double | GetMode () const |
| double | GetDecile (const int &DecileN) const |
| double | GetPercentile (const int &PercentileN) const |
| double | GetByNm (const TStr &MomNm) const |
| TStr | GetStrByNm (const TStr &MomNm, char *FmtStr=NULL) const |
| TStr | GetStr (const char &SepCh=' ', const char &DelimCh=':', const bool &DecileP=true, const bool &PercentileP=true, const TStr &FmtStr="%g") const |
| TStr | GetValVStr (const char &SepCh='\t', const bool &DecileP=true, const bool &PercentileP=true) const |
Static Public Member Functions | |
| static PMom | New () |
| static void | NewV (TMomV &MomV, const int &Moms) |
| static void | NewVV (TVVec< PMom > &MomVV, const int &XMoms, const int &YMoms) |
| static PMom | New (const TFltV &ValV) |
| static PMom | Load (TSIn &SIn) |
| static void | DefV (TMomV &MomV) |
| static void | DefVV (TVVec< PMom > &MomVV) |
| static bool | IsUsableV (const TMomV &MomV) |
| static bool | IsUsableVV (const TVVec< PMom > &MomVV) |
| static TStr | GetNmVStr (const TStr &VarPfx, const char &SepCh='\t', const bool &DecileP=true, const bool &PercentileP=true) |
Private Attributes | |
| TCRef | CRef |
| TBool | DefP |
| TFltPrV | ValWgtV |
| TFlt | SumW |
| TFlt | ValSumW |
| TInt | Vals |
| TBool | UsableP |
| TFlt | UnusableVal |
| TFlt | Mn |
| TFlt | Mx |
| TFlt | Mean |
| TFlt | Vari |
| TFlt | SDev |
| TFlt | SErr |
| TFlt | Median |
| TFlt | Quart1 |
| TFlt | Quart3 |
| TFlt | Mode |
| TFltV | DecileV |
| TFltV | PercentileV |
Friends | |
| class | TPt< TMom > |
| TMom::TMom | ( | const TFltV & | _ValV | ) |
Definition at line 326 of file xmath.cpp.
References Add(), Def(), and TVec< TVal, TSizeTy >::Len().

Definition at line 217 of file xmath.h.
References Assert.
Referenced by TGStat::AvgGStat(), TSnap::GetAnfEffDiam(), TLocClustStat::GetCurveStat(), TLocClustStat::TCutInfo::GetFracDegOut(), TNcpGraphsBase::PlotAvgNcp(), TTimeNet::PlotEffDiam(), TTimeNet::PlotMedianDegOverTm(), TTimeNet::PlotMissingPast(), TGStat::TakeDiam(), and TMom().

| void TMom::Def | ( | ) |
Definition at line 339 of file xmath.cpp.
References THash< TKey, TDat, THashFunc >::AddDat(), TVec< TVal, TSizeTy >::Clr(), DecileV, DefP, TVec< TVal, TSizeTy >::Gen(), THash< TKey, TDat, THashFunc >::GetKey(), IAssert, THash< TKey, TDat, THashFunc >::Len(), TVec< TVal, TSizeTy >::Len(), Mean, Median, Mn, TFlt::Mn, Mode, Mx, PercentileV, Quart1, Quart3, SDev, SErr, TVec< TVal, TSizeTy >::Sort(), TMath::Sqr(), SumW, UsableP, ValSumW, ValWgtV, and Vari.
Referenced by TGnuPlot::AddPlot(), TGStat::AvgGStat(), TSnap::GetAnfEffDiam(), TLocClustStat::GetCurveStat(), TLocClustStat::TCutInfo::GetFracDegOut(), TTimeNet::PlotEffDiam(), TTimeNet::PlotMedianDegOverTm(), TTimeNet::PlotMissingPast(), TGnuPlot::PlotValMomH(), TGStat::TakeDiam(), and TMom().


|
inlinestatic |
Definition at line 210 of file xmath.h.
References TVVec< TVal >::At(), TVVec< TVal >::GetXDim(), and TVVec< TVal >::GetYDim().

| double TMom::GetByNm | ( | const TStr & | MomNm | ) | const |
Definition at line 415 of file xmath.cpp.
References Fail, GetDecile(), GetMean(), GetMedian(), GetQuart1(), GetQuart3(), GetSDev(), GetSErr(), and GetVari().
Referenced by GetStrByNm().


|
inline |
Definition at line 248 of file xmath.h.
References Assert.
Referenced by GetByNm(), TLocClustStat::GetCurveStat(), TLocClustStat::TCutInfo::GetFracDegOut(), GetStr(), and GetValVStr().

|
inline |
Definition at line 240 of file xmath.h.
References Assert.
Referenced by TGnuPlot::AddPlot(), TGStat::AvgGStat(), TSnap::GetAnfEffDiam(), GetByNm(), TLocClustStat::GetCurveStat(), TLocClustStat::TCutInfo::GetFracDegOut(), GetStr(), GetValVStr(), TTimeNet::PlotEffDiam(), TTimeNet::PlotMedianDegOverTm(), TTimeNet::PlotMissingPast(), TGnuPlot::PlotValMomH(), TGStat::TakeDiam(), and TSnap::TestAnf().

|
inline |
Definition at line 244 of file xmath.h.
References Assert.
Referenced by TGnuPlot::AddPlot(), GetByNm(), TLocClustStat::GetCurveStat(), TLocClustStat::TCutInfo::GetFracDegOut(), GetStr(), GetValVStr(), TTimeNet::PlotMedianDegOverTm(), and TGnuPlot::PlotValMomH().

|
inline |
Definition at line 237 of file xmath.h.
References Assert.
Referenced by TGnuPlot::AddPlot(), TLocClustStat::GetCurveStat(), GetStr(), GetValVStr(), and TGnuPlot::PlotValMomH().

|
inline |
Definition at line 238 of file xmath.h.
References Assert.
Referenced by TGnuPlot::AddPlot(), TLocClustStat::GetCurveStat(), TLocClustStat::TCutInfo::GetFracDegOut(), GetStr(), GetValVStr(), and TGnuPlot::PlotValMomH().

|
static |
Definition at line 486 of file xmath.cpp.
References TInt::GetStr().

|
inline |
Definition at line 250 of file xmath.h.
References Assert.
Referenced by GetStr(), and GetValVStr().

|
inline |
|
inline |
|
inline |
Definition at line 242 of file xmath.h.
References Assert.
Referenced by TGnuPlot::AddPlot(), GetByNm(), GetStr(), GetValVStr(), TTimeNet::PlotEffDiam(), TTimeNet::PlotMissingPast(), TGnuPlot::PlotValMomH(), TGStat::TakeDiam(), and TSnap::TestAnf().

|
inline |
| TStr TMom::GetStr | ( | const char & | SepCh = ' ', |
| const char & | DelimCh = ':', |
||
| const bool & | DecileP = true, |
||
| const bool & | PercentileP = true, |
||
| const TStr & | FmtStr = "%g" |
||
| ) | const |
Definition at line 449 of file xmath.cpp.
References TStr::CStr(), GetDecile(), GetMean(), GetMedian(), GetMn(), GetMx(), GetPercentile(), GetQuart1(), GetQuart3(), GetSDev(), TInt::GetStr(), TFlt::GetStr(), GetVals(), and IsUsable().

Definition at line 437 of file xmath.cpp.
References GetByNm(), TFlt::GetStr(), and IsUsable().

|
inline |
|
inline |
Definition at line 220 of file xmath.h.
Referenced by TGnuPlot::AddPlot(), TGStat::AvgGStat(), GetStr(), GetValVStr(), and TGnuPlot::PlotValMomH().

| TStr TMom::GetValVStr | ( | const char & | SepCh = '\t', |
| const bool & | DecileP = true, |
||
| const bool & | PercentileP = true |
||
| ) | const |
Definition at line 516 of file xmath.cpp.
References GetDecile(), GetMean(), GetMedian(), GetMn(), GetMx(), GetPercentile(), GetQuart1(), GetQuart3(), GetSDev(), TInt::GetStr(), TFlt::GetStr(), GetVals(), IsUsable(), and Vals.

|
inline |
|
inline |
Definition at line 214 of file xmath.h.
Referenced by TGnuPlot::AddPlot(), and TGnuPlot::PlotValMomH().

|
inline |
Definition at line 225 of file xmath.h.
References Assert.
Referenced by TGStat::AvgGStat(), GetStr(), GetStrByNm(), and GetValVStr().

|
inlinestatic |
Definition at line 226 of file xmath.h.
References TVec< TVal, TSizeTy >::Len().

Definition at line 230 of file xmath.h.
References TVVec< TVal >::At(), TVVec< TVal >::GetXDim(), and TVVec< TVal >::GetYDim().

|
inlinestatic |
Definition at line 160 of file xmath.h.
Referenced by TStatTest::TTest().

|
inlinestatic |
Definition at line 161 of file xmath.h.
References TVec< TVal, TSizeTy >::Gen().

|
inlinestatic |
Definition at line 163 of file xmath.h.
References TVVec< TVal >::At(), and TVVec< TVal >::Gen().

|
inline |
|
inline |
|
private |
Definition at line 141 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 131 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 138 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 139 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 137 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 140 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 137 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 142 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 139 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 139 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 138 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 138 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 133 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 136 of file xmath.h.
Referenced by operator=().
|
private |
Definition at line 135 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 134 of file xmath.h.
Referenced by GetValVStr(), operator<(), operator=(), and operator==().
|
private |
Definition at line 133 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 132 of file xmath.h.
Referenced by Def(), and operator=().
|
private |
Definition at line 138 of file xmath.h.
Referenced by Def(), and operator=().