SNAP Library 6.0, Developer 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 | |
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 TVec< TVal, TSizeTy >::Len().
|
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(), and SaveStat().
|
private |
Definition at line 460 of file xmath.h.
Referenced by Add(), and SaveStat().
|
private |
Definition at line 462 of file xmath.h.
Referenced by Add(), GetVals(), and SaveStat().