faif
Public Member Functions | Static Public Member Functions | List of all members
faif::RandomCustomCreator Class Reference
Collaboration diagram for faif::RandomCustomCreator:
Collaboration graph

Public Member Functions

 RandomCustomCreator (double e)
 
 RandomCustomCreator (const RandomCustomCreator &c)
 
virtual ~RandomCustomCreator ()
 
double addValue (double value)
 
long getNumValues () const
 
RandomCustomDistr getRandomCustomDistr () const
 

Static Public Member Functions

static double calculateEpsilon (double sigma, long num_steps)
 

Constructor & Destructor Documentation

faif::RandomCustomCreator::RandomCustomCreator ( double  e)
inline

c-tor, the length of interval in histogram

faif::RandomCustomCreator::RandomCustomCreator ( const RandomCustomCreator c)
inline

c-tor

virtual faif::RandomCustomCreator::~RandomCustomCreator ( )
inlinevirtual

d-tor

Member Function Documentation

static double faif::RandomCustomCreator::calculateEpsilon ( double  sigma,
long  num_steps 
)
inlinestatic

the epsilon (length of interval in histogram) is dependent of num_steps in Monte Carlo simulation. It is assumed Normal(mi,sigma)(x = mi + 3*sigma - epsilon/2, x = mi + 3*sigma + epsilon/2) >= sqrt(num_steps), so y = (x - mi)/sigma Normal(0,1)(y = 3 - epsil/2, y = 3 + epsil/2) >= sqrt(num_steps), so:

epsilon = sigma/(sqrt(N)*pdf(3), where pdf(3) = N(0,1) dla x = 3

long faif::RandomCustomCreator::getNumValues ( ) const
inline

accessor - return the number of added

RandomCustomDistr faif::RandomCustomCreator::getRandomCustomDistr ( ) const
inline

accessor - transform internal data to histogram distribution

References faif::DistrValue::DistrValue(), faif::DistrValue::getTo(), and faif::DistrValue::operator=().


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