vSMC  v3.0.0
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 , typename RNGType >
void vsmc::chi_squared_distribution (RNGType &rng, std::size_t N, RealType *r, const typename ChiSquaredDistribution< RealType >::param_type &param)
 
template<typename RealType >
bool vsmc::internal::chi_squared_distribution_check_param (RealType n)
 
template<typename RealType , typename RNGType >
void vsmc::rand (RNGType &rng, ChiSquaredDistribution< RealType > &dist, std::size_t N, RealType *r)