Class implements Uniform Distribution. More...
#include <uniformDistribution.hpp>
Public Member Functions | |
UniformDistribution () | |
Constructor. More... | |
UniformDistribution (double A, double B) | |
Constructor. More... | |
UniformDistribution * | clone () const |
Virtual copy constructor. More... | |
Probability Distribution Interface | |
double | CDF (double) |
calculates value of Cumulative Distribution Function More... | |
double | PDF (double) |
calculates value of Probability Distribution Function More... | |
double | invCDF (double) |
calculates quantile More... | |
double | mean () |
returns mean More... | |
double | variance () |
returns variance More... | |
void | estimate (std::vector< double >) |
estimates parameters using Moment Matching Estimation More... | |
Scale Location Interface | |
double | getLocation () |
returns location More... | |
double | getScale () |
returns location More... | |
double | getShape () |
returns shape More... | |
void | setLocation (double) |
sets location More... | |
void | setScale (double) |
sets scale parameter More... | |
void | setShape (double) |
This method does nothing. More... | |
Public Member Functions inherited from julian::ScaleLocationDistribution | |
virtual | ~ScaleLocationDistribution () |
destructor More... | |
Public Member Functions inherited from julian::ProbabilityDistribution | |
virtual | ~ProbabilityDistribution () |
destructor More... | |
Private Attributes | |
double | A_ |
Minimum value (location parameter) More... | |
double | B_ |
Maximum value (scale parameter) More... | |
Detailed Description
Class implements Uniform Distribution.
Uniform probability distribution is defined by the two parameters, A and B, which are its minimum and maximum values.
1) Cumulative distribution function of normal random variable X
2) Probability distribution function of normal random variable X
3) Parameters
A is minimum value
B is maximum value
Location
A is a location parameter.
Scale
Scale is difference of B and A
- Examples:
- simulatedAnnealingExample.cpp.
Constructor & Destructor Documentation
|
inline |
Constructor.
Set location to 0 and scale to 1
julian::UniformDistribution::UniformDistribution | ( | double | A, |
double | B | ||
) |
Constructor.
Constructor requires parametrization of random variables
Member Function Documentation
|
virtual |
|
virtual |
Virtual copy constructor.
Reimplemented from julian::ScaleLocationDistribution.
|
virtual |
|
virtual |
returns location
Implements julian::ScaleLocationDistribution.
|
virtual |
returns location
Implements julian::ScaleLocationDistribution.
|
virtual |
returns shape
Method returns NAN as uniform distribution is not parametrized with shape
Implements julian::ScaleLocationDistribution.
|
virtual |
calculates quantile
Implements julian::ProbabilityDistribution.
|
virtual |
returns mean
Implements julian::ProbabilityDistribution.
|
virtual |
|
virtual |
sets location
Parameter A is location of uniform distribution
Implements julian::ScaleLocationDistribution.
|
virtual |
sets scale parameter
Implements julian::ScaleLocationDistribution.
|
virtual |
This method does nothing.
uniform distribution is not parametrized by shape parameter
Implements julian::ScaleLocationDistribution.
|
virtual |
returns variance
Implements julian::ProbabilityDistribution.
Member Data Documentation
|
private |
Minimum value (location parameter)
|
private |
Maximum value (scale parameter)
The documentation for this class was generated from the following files:
- C:/Unix/home/OEM/jULIAN/src/mathematics/distributions/uniformDistribution.hpp
- C:/Unix/home/OEM/jULIAN/src/mathematics/distributions/uniformDistribution.cpp