SNAP Library 4.0, Developer Reference
2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <xmath.h>
Public Member Functions | |
THist () | |
THist (const double &_MnVal, const double &_MxVal, const int &Buckets) | |
void | Add (const double &Val, const bool &OnlyInP) |
int | GetVals () const |
int | GetBuckets () const |
double | GetBucketMn (const int &BucketN) const |
double | GetBucketMx (const int &BucketN) const |
int | GetBucketVal (const int &BucketN) const |
double | GetBucketValPerc (const int &BucketN) const |
void | SaveStat (const TStr &ValNm, TSOut &FOut) const |
void | SaveTxt (const TStr &ValNm, const TStr &FNm) const |
Private Attributes | |
TFlt | MnVal |
TFlt | MxVal |
TIntV | BucketV |
TFlt | BucketSize |
TInt | Vals |
|
inline |
void THist::Add | ( | const double & | Val, |
const bool & | OnlyInP | ||
) |
Definition at line 1281 of file xmath.cpp.
References BucketSize, BucketV, EAssert, TVec< TVal, TSizeTy >::Last(), TVec< TVal, TSizeTy >::Len(), MnVal, MxVal, and Vals.
|
inline |
|
inline |
|
inline |
Definition at line 472 of file xmath.h.
References BucketV, and TVec< TVal, TSizeTy >::Len().
|
inline |
|
inline |
Definition at line 1302 of file xmath.cpp.
References BucketSize, BucketV, TStr::Fmt(), TInt::GetStr(), TVec< TVal, TSizeTy >::Last(), TVec< TVal, TSizeTy >::Len(), TSOut::PutStrLn(), and Vals.
Referenced by SaveTxt().
Definition at line 480 of file xmath.h.
References SaveStat().
|
private |
Definition at line 461 of file xmath.h.
Referenced by Add(), GetBucketMn(), GetBucketMx(), SaveStat(), and THist().
|
private |
Definition at line 460 of file xmath.h.
Referenced by Add(), GetBuckets(), GetBucketVal(), GetBucketValPerc(), and SaveStat().
|
private |
Definition at line 458 of file xmath.h.
Referenced by Add(), GetBucketMn(), GetBucketMx(), and THist().
|
private |
Definition at line 462 of file xmath.h.
Referenced by Add(), GetBucketValPerc(), GetVals(), and SaveStat().