rippled
|
Power-law distribution with PDF. More...
Public Types | |
using | result_type = double |
Public Member Functions | |
PowerLawDistribution (double xmin, double a) | |
template<class Generator > | |
double | operator() (Generator &g) |
Private Attributes | |
double | xmin_ |
double | a_ |
double | inv_ |
std::uniform_real_distribution< double > | uf_ {0, 1} |
Power-law distribution with PDF.
P(x) = (x/xmin)^-a
for a >= 1 and xmin >= 1
Definition at line 151 of file test/csf/random.h.
using ripple::test::csf::PowerLawDistribution::result_type = double |
Definition at line 159 of file test/csf/random.h.
ripple::test::csf::PowerLawDistribution::PowerLawDistribution | ( | double | xmin, |
double | a | ||
) |
Definition at line 161 of file test/csf/random.h.
double ripple::test::csf::PowerLawDistribution::operator() | ( | Generator & | g | ) |
Definition at line 168 of file test/csf/random.h.
|
private |
Definition at line 153 of file test/csf/random.h.
|
private |
Definition at line 154 of file test/csf/random.h.
|
private |
Definition at line 155 of file test/csf/random.h.
|
private |
Definition at line 156 of file test/csf/random.h.