Transforms a standard normal number into one on a different normal distribution. More...
#include <FastAndPoorGauss.h>
Public Types | |
using | Data_t = T |
Type of data to deal with. More... | |
Public Member Functions | |
GaussianTransformer (T mean, T stddev) | |
Constructor: selects the mean and standard deviation. More... | |
Data_t | mean () const |
Returns the mean of the target Gaussian distribution. More... | |
Data_t | stdDev () const |
Returns the standard deviation of the target Gaussian distribution. More... | |
Data_t | transform (Data_t const z) const |
Transforms normal value z into the target distribution. More... | |
Data_t | operator() (Data_t const z) const |
Static Public Member Functions | |
static Data_t | transform (Data_t const z, Data_t const mean, Data_t const stddev) |
Transforms normal value z into one distributed with mean and stddev . More... | |
Private Attributes | |
Data_t const | fMean = Data_t{ 0.0 } |
Data_t const | fStdDev = Data_t{ 1.0 } |
Transforms a standard normal number into one on a different normal distribution.
T | type of the data |
This functor applies the simple mapping of a standard normal variable with mean 0 and standard deviation 1 into one with arbitrary mean and standard deviation: .
Definition at line 49 of file FastAndPoorGauss.h.
using util::GaussianTransformer< T >::Data_t = T |
Type of data to deal with.
Definition at line 139 of file FastAndPoorGauss.h.
|
inline |
Constructor: selects the mean and standard deviation.
Definition at line 142 of file FastAndPoorGauss.h.
|
inline |
Returns the mean of the target Gaussian distribution.
Definition at line 152 of file FastAndPoorGauss.h.
|
inline |
Definition at line 148 of file FastAndPoorGauss.h.
|
inline |
Returns the standard deviation of the target Gaussian distribution.
Definition at line 155 of file FastAndPoorGauss.h.
|
inline |
Transforms normal value z
into the target distribution.
Definition at line 146 of file FastAndPoorGauss.h.
|
inlinestatic |
Transforms normal value z
into one distributed with mean
and stddev
.
Definition at line 159 of file FastAndPoorGauss.h.
|
private |
Definition at line 164 of file FastAndPoorGauss.h.
|
private |
Definition at line 165 of file FastAndPoorGauss.h.