KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions | Variables
prob_sample.cpp File Reference

Definition of the non-inline sample functions. More...

#include <prob_cpp/prob_sample.h>
#include <prob_cpp/prob_distribution.h>
#include <m_cpp/m_vector.h>
#include <cmath>
#include <boost/random.hpp>
#include <boost/bind.hpp>
#include <unistd.h>

Namespaces

 kjb
 Classes and functions for dealing with trajectory files.
 

Functions

Base_generator_type kjb::basic_rnd_gen (DEFAULT_SEED)
 
Vector kjb::sample (const MV_gaussian_distribution &dist)
 Sample from a multivariate normal distribution. More...
 
Chinese_restaurant_process::Type kjb::sample (const Chinese_restaurant_process &crp)
 Sample from a CRP. More...
 
size_t kjb::sample_occupied_tables (const Chinese_restaurant_process &crp)
 Sample the number of occupied tables from a CRP (don't store the actual partition). More...
 

Variables

const unsigned int kjb::DEFAULT_SEED = static_cast<unsigned int>(std::time(0)+getpid())
 Random seed used to initialize the random number generator. More...
 

Detailed Description

Definition of the non-inline sample functions.

Author
Kobus Barnard
Ernesto Brau