vSMC
vSMC: Scalable Monte Carlo
Classes | Namespaces | Functions
chi_squared_distribution.hpp File Reference
#include <vsmc/rng/internal/common.hpp>
#include <vsmc/rng/gamma_distribution.hpp>

Go to the source code of this file.

Classes

class  vsmc::ChiSquaredDistribution< RealType >
 The \(\chi^2\) distribution. More...
 
class  vsmc::ChiSquaredDistribution< RealType >::param_type
 

Namespaces

 vsmc
 
 vsmc::internal
 

Functions

template<typename RealType , typename RNGType >
void vsmc::chi_squared_distribution (RNGType &rng, std::size_t n, RealType *r, RealType df)
 Generating \(\chi^2\) random variates. More...
 
template<typename RealType >
bool vsmc::internal::chi_squared_distribution_check_param (RealType n)
 
template<typename RealType , typename RNGType >
void vsmc::rng_rand (RNGType &rng, ChiSquaredDistribution< RealType > &dist, std::size_t n, RealType *r)