Infinity Engine v0.6.20
C++ API Documentation
Loading...
Searching...
No Matches
Infinity::Engine::ExponentialDistribution< RealType >::param_type Struct Reference

Parameter set for the distribution. More...

#include <PRNGDistribution.hpp>

Public Types

using distribution_type = ExponentialDistribution< RealType >
 

Public Member Functions

 param_type ()
 Default constructor. Creates parameters for Exponential(1).
 
 param_type (RealType lambda)
 Constructs parameters.
 
RealType lambda () const
 Gets the rate parameter.
 

Friends

bool operator== (const param_type &lhs, const param_type &rhs)
 
bool operator!= (const param_type &lhs, const param_type &rhs)
 

Detailed Description

template<typename RealType = double>
struct Infinity::Engine::ExponentialDistribution< RealType >::param_type

Parameter set for the distribution.

Stores the rate parameter lambda.

Member Typedef Documentation

◆ distribution_type

template<typename RealType = double>
using Infinity::Engine::ExponentialDistribution< RealType >::param_type::distribution_type = ExponentialDistribution<RealType>

Constructor & Destructor Documentation

◆ param_type() [1/2]

template<typename RealType = double>
Infinity::Engine::ExponentialDistribution< RealType >::param_type::param_type ( )
inline

Default constructor. Creates parameters for Exponential(1).

◆ param_type() [2/2]

template<typename RealType = double>
Infinity::Engine::ExponentialDistribution< RealType >::param_type::param_type ( RealType  lambda)
inlineexplicit

Constructs parameters.

Parameters
lambdaRate parameter (must be > 0). Mean = 1/lambda.

Member Function Documentation

◆ lambda()

template<typename RealType = double>
RealType Infinity::Engine::ExponentialDistribution< RealType >::param_type::lambda ( ) const
inline

Gets the rate parameter.

Friends And Related Symbol Documentation

◆ operator!=

template<typename RealType = double>
bool operator!= ( const param_type lhs,
const param_type rhs 
)
friend

◆ operator==

template<typename RealType = double>
bool operator== ( const param_type lhs,
const param_type rhs 
)
friend