SNAP Library 6.0, User Reference
2020-12-09 16:24:20
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 > |
void TMom::Def | ( | ) |
|
inlinestatic |
|
static |
|
inline |
TStr TMom::GetStr | ( | const char & | SepCh = ' ' , |
const char & | DelimCh = ':' , |
||
const bool & | DecileP = true , |
||
const bool & | PercentileP = true , |
||
const TStr & | FmtStr = "%g" |
||
) | const |
TStr TMom::GetValVStr | ( | const char & | SepCh = '\t' , |
const bool & | DecileP = true , |
||
const bool & | PercentileP = true |
||
) | const |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |