Skip to content

baaraan::truncated_mvnorm_distribution

Module: Truncated Random Distributions

Truncated Normal Distribution. More...

#include <truncated_mvnorm_distribution.h>

Public Classes

Name
class param_type

Public Types

Name
typedef arma::Col< RealType > vector_type
typedef arma::Mat< RealType > matrix_type

Public Functions

Name
truncated_mvnorm_distribution(vector_type means, matrix_type sigma, vector_type lowers, vector_type uppers)
Constructs an instance of the truncated multivariate normal random distribution by accepting its individual parameters.
truncated_mvnorm_distribution(const param_type & p)
Constructs an instance of the truncated multivariate normal random distribution by accepting an initialized truncated_mvnorm_distribution::param_type.
void reset()
template <class URNG >
vector_type
operator()(URNG & g)
template <class URNG >
vector_type
operator()(URNG & g, const param_type & p)
vector_type means() const
matrix_type sigma() const
param_type param() const
void param(const param_type & params)
vector_type lowers() const
vector_type min() const
vector_type uppers() const
vector_type max() const
template <class _URNG >
truncated_mvnorm_distribution< RealType >::vector_type
operator()(_URNG & g, const truncated_mvnorm_distribution< RealType >::param_type & p)

Friends

Name
bool operator==(const truncated_mvnorm_distribution & x, const truncated_mvnorm_distribution & y)
bool operator!=(const truncated_mvnorm_distribution & x, const truncated_mvnorm_distribution & y)
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > & os, const truncated_mvnorm_distribution & means)
std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > & is, truncated_mvnorm_distribution & means)

Detailed Description

template <class RealType  =double>
class baaraan::truncated_mvnorm_distribution;

Truncated Normal Distribution.

Template Parameters:

  • RealType Indicates the type of return values

Public Types Documentation

typedef vector_type

typedef arma::Col<RealType> baaraan::truncated_mvnorm_distribution< RealType >::vector_type;

typedef matrix_type

typedef arma::Mat<RealType> baaraan::truncated_mvnorm_distribution< RealType >::matrix_type;

Public Functions Documentation

function truncated_mvnorm_distribution

inline explicit truncated_mvnorm_distribution(
    vector_type means,
    matrix_type sigma,
    vector_type lowers,
    vector_type uppers
)

Constructs an instance of the truncated multivariate normal random distribution by accepting its individual parameters.

Parameters:

  • means The mean vector
  • sigma The covariance matrix
  • lowers The vector of values indicating lower truncation bound
  • uppers The vector of values indicating upper truncation bound

function truncated_mvnorm_distribution

inline explicit truncated_mvnorm_distribution(
    const param_type & p
)

Constructs an instance of the truncated multivariate normal random distribution by accepting an initialized truncated_mvnorm_distribution::param_type.

Parameters:

  • p

function reset

inline void reset()

function operator()

template <class URNG >
inline vector_type operator()(
    URNG & g
)

function operator()

template <class URNG >
vector_type operator()(
    URNG & g,
    const param_type & p
)

function means

inline vector_type means() const

function sigma

inline matrix_type sigma() const

function param

inline param_type param() const

function param

inline void param(
    const param_type & params
)

function lowers

inline vector_type lowers() const

function min

inline vector_type min() const

function uppers

inline vector_type uppers() const

function max

inline vector_type max() const

function operator()

template <class _URNG >
truncated_mvnorm_distribution< RealType >::vector_type operator()(
    _URNG & g,
    const truncated_mvnorm_distribution< RealType >::param_type & p
)

Friends

friend operator==

friend bool operator==(
    const truncated_mvnorm_distribution & x,

    const truncated_mvnorm_distribution & y
);

friend operator!=

friend bool operator!=(
    const truncated_mvnorm_distribution & x,

    const truncated_mvnorm_distribution & y
);

friend operator<<

friend std::basic_ostream< charT, traits > & operator<<(
    std::basic_ostream< charT, traits > & os,

    const truncated_mvnorm_distribution & means
);

friend operator>>

friend std::basic_istream< charT, traits > & operator>>(
    std::basic_istream< charT, traits > & is,

    truncated_mvnorm_distribution & means
);

Updated on 2 June 2021 at 11:24:45 CEST