CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::UniformRealDistribution< Quantity > Class Template Reference

Public Types

typedef Quantity value_type
 

Public Member Functions

 UniformRealDistribution (value_type b)
 
 UniformRealDistribution (value_type pmin, value_type pmax)
 
 UniformRealDistribution (UniformRealDistribution< value_type > const &other)
 
UniformRealDistribution< value_type > & operator= (UniformRealDistribution< value_type > const &other)
 
value_type getMax () const
 Get the upper limit. More...
 
void setMax (value_type const pmax)
 Set the upper bound. More...
 
value_type getMin () const
 Get the lower bound. More...
 
void setMin (value_type const pmin)
 Set the lower bound. More...
 
template<class TGenerator >
value_type operator() (TGenerator &g)
 Generate a random number in the range [min, max). More...
 

Detailed Description

template<typename Quantity>
class corsika::UniformRealDistribution< Quantity >

Definition at line 17 of file UniformRealDistribution.hpp.

Member Function Documentation

◆ getMax()

template<typename Quantity>
value_type corsika::UniformRealDistribution< Quantity >::getMax ( ) const
inline

Get the upper limit.

Returns
value_type

Definition at line 53 of file UniformRealDistribution.hpp.

◆ getMin()

template<typename Quantity>
value_type corsika::UniformRealDistribution< Quantity >::getMin ( ) const
inline

Get the lower bound.

Returns
The minimum possible value.

Definition at line 67 of file UniformRealDistribution.hpp.

◆ operator()()

template<typename Quantity>
template<class TGenerator >
value_type corsika::UniformRealDistribution< Quantity >::operator() ( TGenerator &  g)
inline

Generate a random number in the range [min, max).

Template Parameters
TGenerator
Parameters
g
Returns
value_type

Definition at line 84 of file UniformRealDistribution.hpp.

◆ setMax()

template<typename Quantity>
void corsika::UniformRealDistribution< Quantity >::setMax ( value_type const  pmax)
inline

Set the upper bound.

Parameters
pmaxnew upper bound

Definition at line 60 of file UniformRealDistribution.hpp.

◆ setMin()

template<typename Quantity>
void corsika::UniformRealDistribution< Quantity >::setMin ( value_type const  pmin)
inline

Set the lower bound.

Parameters
pminis the new lower bound.

Definition at line 74 of file UniformRealDistribution.hpp.


The documentation for this class was generated from the following file: