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 <dt.h>
Public Member Functions | |
TRnd (const int &_Seed=1, const int &Steps=0) | |
TRnd (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
void | LoadXml (const PXmlTok &XmlTok, const TStr &Nm) |
void | SaveXml (TSOut &SOut, const TStr &Nm) const |
TRnd & | operator= (const TRnd &Rnd) |
bool | operator== (const TRnd &) const |
double | GetUniDev () |
int | GetUniDevInt (const int &Range=0) |
int | GetUniDevInt (const int &MnVal, const int &MxVal) |
uint | GetUniDevUInt (const uint &Range=0) |
int64 | GetUniDevInt64 (const int64 &Range=0) |
uint64 | GetUniDevUInt64 (const uint64 &Range=0) |
double | GetNrmDev () |
double | GetNrmDev (const double &Mean, const double &SDev, const double &Mn, const double &Mx) |
double | GetExpDev () |
double | GetExpDev (const double &Lambda) |
double | GetGammaDev (const int &Order) |
double | GetPoissonDev (const double &Mean) |
double | GetBinomialDev (const double &Prb, const int &Trials) |
int | GetGeoDev (const double &Prb) |
double | GetPowerDev (const double &AlphaSlope) |
double | GetRayleigh (const double &Sigma) |
double | GetWeibull (const double &K, const double &Lambda) |
void | PutSeed (const int &_Seed) |
int | GetSeed () const |
void | Randomize () |
void | Move (const int &Steps) |
bool | Check () |
void | SaveTxt (TOLx &Lx) const |
Static Public Member Functions | |
static double | GetUniDevStep (const int &Seed, const int &Steps) |
static double | GetNrmDevStep (const int &Seed, const int &Steps) |
static double | GetExpDevStep (const int &Seed, const int &Steps) |
static TRnd | LoadTxt (TILx &Lx) |
Static Public Attributes | |
static const int | RndSeed =0 |
Private Member Functions | |
int | GetNextSeed () |
Private Attributes | |
int | Seed |
Static Private Attributes | |
static const int | a =16807 |
static const int | m =2147483647 |
static const int | q =127773 |
static const int | r =2836 |
|
inline |
double TRnd::GetBinomialDev | ( | const double & | Prb, |
const int & | Trials | ||
) |
double TRnd::GetExpDev | ( | const double & | Lambda | ) |
|
inlinestatic |
|
inlineprivate |
double TRnd::GetNrmDev | ( | const double & | Mean, |
const double & | SDev, | ||
const double & | Mn, | ||
const double & | Mx | ||
) |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
Definition at line 9 of file dt.cpp.
|
inline |
void TRnd::PutSeed | ( | const int & | _Seed | ) |