SNAP Library, User Reference  2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TRnd Class Reference

List of all members.

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
TRndoperator= (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)
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)
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

Constructor & Destructor Documentation

TRnd::TRnd ( const int &  _Seed = 1,
const int &  Steps = 0 
) [inline]
TRnd::TRnd ( TSIn SIn) [inline, explicit]

Member Function Documentation

bool TRnd::Check ( )
double TRnd::GetBinomialDev ( const double &  Prb,
const int &  Trials 
)
double TRnd::GetExpDev ( )
double TRnd::GetExpDev ( const double &  Lambda)
static double TRnd::GetExpDevStep ( const int &  Seed,
const int &  Steps 
) [inline, static]
double TRnd::GetGammaDev ( const int &  Order)
int TRnd::GetGeoDev ( const double &  Prb) [inline]
double TRnd::GetNrmDev ( )
double TRnd::GetNrmDev ( const double &  Mean,
const double &  SDev,
const double &  Mn,
const double &  Mx 
)
static double TRnd::GetNrmDevStep ( const int &  Seed,
const int &  Steps 
) [inline, static]
double TRnd::GetPoissonDev ( const double &  Mean)
double TRnd::GetPowerDev ( const double &  AlphaSlope) [inline]
int TRnd::GetSeed ( ) const [inline]
double TRnd::GetUniDev ( ) [inline]
int TRnd::GetUniDevInt ( const int &  Range = 0)
int TRnd::GetUniDevInt ( const int &  MnVal,
const int &  MxVal 
) [inline]
static double TRnd::GetUniDevStep ( const int &  Seed,
const int &  Steps 
) [inline, static]
uint TRnd::GetUniDevUInt ( const uint Range = 0)
TRnd TRnd::LoadTxt ( TILx Lx) [static]
void TRnd::LoadXml ( const PXmlTok &  XmlTok,
const TStr Nm 
)
void TRnd::Move ( const int &  Steps)
TRnd& TRnd::operator= ( const TRnd Rnd) [inline]
bool TRnd::operator== ( const TRnd ) const [inline]
void TRnd::PutSeed ( const int &  _Seed)
void TRnd::Randomize ( ) [inline]
void TRnd::Save ( TSOut SOut) const [inline]
void TRnd::SaveTxt ( TOLx Lx) const
void TRnd::SaveXml ( TSOut SOut,
const TStr Nm 
) const

Member Data Documentation

const int TRnd::RndSeed = 0 [static]

The documentation for this class was generated from the following files: