3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Types | Public Member Functions | List of all members
Dumux::SimpleLogNormalDistribution< Scalar > Class Template Reference

A simple log-normal distribution. More...

#include <dumux/common/random.hh>

Description

template<class Scalar = double>
class Dumux::SimpleLogNormalDistribution< Scalar >

A simple log-normal distribution.

Note
Use this if you need a fast library implementation independent generator without strict requirements about the bias
We try to stay close to https://en.cppreference.com/w/cpp/numeric/random/lognormal_distribution

Public Types

using param_type = Parameters
 
using result_type = Scalar
 

Public Member Functions

 SimpleLogNormalDistribution (Scalar mean, Scalar stddev=1.0)
 
 SimpleLogNormalDistribution (const Parameters &p)
 
 SimpleLogNormalDistribution ()
 
void param (const Parameters &p)
 
Parameters param () const
 
Scalar m () const
 
Scalar s () const
 
template<class Generator >
Scalar operator() (Generator &gen)
 

Member Typedef Documentation

◆ param_type

template<class Scalar = double>
using Dumux::SimpleLogNormalDistribution< Scalar >::param_type = Parameters

◆ result_type

template<class Scalar = double>
using Dumux::SimpleLogNormalDistribution< Scalar >::result_type = Scalar

Constructor & Destructor Documentation

◆ SimpleLogNormalDistribution() [1/3]

template<class Scalar = double>
Dumux::SimpleLogNormalDistribution< Scalar >::SimpleLogNormalDistribution ( Scalar  mean,
Scalar  stddev = 1.0 
)
inlineexplicit

◆ SimpleLogNormalDistribution() [2/3]

template<class Scalar = double>
Dumux::SimpleLogNormalDistribution< Scalar >::SimpleLogNormalDistribution ( const Parameters &  p)
inlineexplicit

◆ SimpleLogNormalDistribution() [3/3]

template<class Scalar = double>
Dumux::SimpleLogNormalDistribution< Scalar >::SimpleLogNormalDistribution ( )
inline

Member Function Documentation

◆ m()

template<class Scalar = double>
Scalar Dumux::SimpleLogNormalDistribution< Scalar >::m ( ) const
inline

◆ operator()()

template<class Scalar = double>
template<class Generator >
Scalar Dumux::SimpleLogNormalDistribution< Scalar >::operator() ( Generator &  gen)
inline

◆ param() [1/2]

template<class Scalar = double>
Parameters Dumux::SimpleLogNormalDistribution< Scalar >::param ( ) const
inline

◆ param() [2/2]

template<class Scalar = double>
void Dumux::SimpleLogNormalDistribution< Scalar >::param ( const Parameters &  p)
inline

◆ s()

template<class Scalar = double>
Scalar Dumux::SimpleLogNormalDistribution< Scalar >::s ( ) const
inline

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