| 
    rippled
    
   | 
 
Power-law distribution with PDF. More...
#include <random.h>

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 132 of file src/test/csf/random.h.
| using ripple::test::csf::PowerLawDistribution::result_type = double | 
Definition at line 140 of file src/test/csf/random.h.
| ripple::test::csf::PowerLawDistribution::PowerLawDistribution | ( | double | xmin, | 
| double | a | ||
| ) | 
Definition at line 142 of file src/test/csf/random.h.
| double ripple::test::csf::PowerLawDistribution::operator() | ( | Generator & | g | ) | 
Definition at line 149 of file src/test/csf/random.h.
      
  | 
  private | 
Definition at line 134 of file src/test/csf/random.h.
      
  | 
  private | 
Definition at line 135 of file src/test/csf/random.h.
      
  | 
  private | 
Definition at line 136 of file src/test/csf/random.h.
      
  | 
  private | 
Definition at line 137 of file src/test/csf/random.h.