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

Sampling functionality for the different distributions defined in "prob_distributions.h". More...

#include <prob_cpp/prob_distribution.h>
#include <prob_cpp/prob_pdf.h>
#include <m_cpp/m_vector.h>
#include <m_cpp/m_vector_d.h>
#include <m_cpp/m_matrix_d.h>
#include <g_cpp/g_util.h>
#include <l_cpp/l_util.h>
#include <boost/random.hpp>
#include <algorithm>
#include <vector>

Go to the source code of this file.


 Classes and functions for dealing with trajectory files.


typedef boost::mt19937 kjb::Base_generator_type


void kjb::seed_sampling_rand (unsigned int x0)
 Seed random number generator. More...
double kjb::sample (const Uniform_distribution &dist)
 Sample from a uniform distribution. More...
template<class Distro >
double kjb::sample (const Distro &dist)
 Template sample function. More...
double kjb::sample (const Bernoulli_distribution &dist)
 Sample from a Bernoulli distribution. More...
double kjb::sample (const Binomial_distribution &dist)
 Sample from a Binomial distribution. More...
double kjb::sample (const Exponential_distribution &dist)
 Sample from a exponential distribution. More...
double kjb::sample (const Gaussian_distribution &dist)
 Sample from a Gaussian distribution. More...
double kjb::sample (const Poisson_distribution &dist)
 Sample from a Poisson distribution. More...
double kjb::sample (const Geometric_distribution &dist)
template<class T >
kjb::sample (const Categorical_distribution< T > &dist)
 Sample from a categorical distribution. More...
template<class Iterator , class distance_type >
Iterator kjb::element_uar (Iterator first, distance_type size)
 Pick an element uniformly at random (UAR) from a sequence, represented by a beginning iterator and a size. More...
Vector kjb::sample (const MV_gaussian_distribution &dist)
 Sample from a multivariate normal distribution. More...
double kjb::sample (const Log_normal_distribution &dist)
template<class Distribution >
< Mixture_distribution
< Distribution > >::type 
kjb::sample (const Mixture_distribution< Distribution > &dist)
 Sample from a mixture distribution. More...
template<size_t D>
kjb::Vector_d< Dkjb::sample (const Uniform_sphere_distribution< D > &)
 Sample uniformly from the surface of a unit-sphere in D-dimensional euclidean space. More...
template<size_t D, class Vector_d_iterator >
void kjb::sample (const Von_mises_fisher_distribution< D > &dist, size_t n, Vector_d_iterator it)
template<size_t D>
Vector_d< Dkjb::sample (const Von_mises_fisher_distribution< D > &dist)
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...


Base_generator_type kjb::basic_rnd_gen

Detailed Description

Sampling functionality for the different distributions defined in "prob_distributions.h".

Kobus Barnard
Ernesto Brau

This relies heavily on the boost::random library.