Bernoulli.h File Reference
#include <shark/Rng/Rng.h>
#include <boost/random.hpp>
#include <cmath>

Go to the source code of this file.

Classes

class  shark::Bernoulli< RngType >
 This class simulates a "Bernoulli trial", which is like a coin toss. More...
 

Namespaces

 shark
 AbstractMultiObjectiveOptimizer.
 

Functions

template<class RngType >
bool shark::coinToss (RngType &rng, double pHeads)
 Flips a coin with probability of heads being pHeads by drawing random numbers from rng. More...