randnum/Binomial.cpp File Reference

#include <cmath>
#include "randnum.h"
#include "utility/numutil.h"
#include "Binomial.h"
#include <vector>
#include <iostream>
#include <climits>
Include dependency graph for Binomial.cpp:

Functions

const vector< double > initializeLookupTable ()
 Insert first 100 elements in lookup table.
double getFc (unsigned int k)
void testBinomial ()

Variables

const double fc []

Function Documentation

double getFc ( unsigned int  k  )  [inline]

retrieve fc value from table or calculate it depending on the value of k

const vector<double> initializeLookupTable (  ) 

Insert first 100 elements in lookup table.

References fc.

void testBinomial (  ) 

TODO: what to do to automatically test the quality of the random number generation? We can check the mean and variance perhaps? We should also check the plot of the distribution manually.

References Binomial::getMean(), and Binomial::getNextSample().

Here is the call graph for this function:


Variable Documentation

const double fc[]
Initial value:
 {
    0.08106146679532726,
    0.04134069595540929,
    0.02767792568499834,
    0.02079067210376509,
    0.01664469118982119,
    0.01387612882307075,
    0.01189670994589177,
    0.01041126526197209,
    0.009255462182712733,
    0.008330563433362871
}

Referenced by initializeLookupTable().


Generated on 1 Jul 2015 for MOOSE by  doxygen 1.6.1