|
double | cumsum_random (size_t n) |
| Result of the cumulative sum of n random numbers.
|
|
double | cumsum_delta (size_t n, double scale=1) |
| Result of the cumulative sum of n 'random' numbers, distributed according to a delta distribution,.
|
|
double | cumsum_exponential (size_t n, double scale=1) |
| Result of the cumulative sum of n random numbers, distributed according to an exponential distribution, see exponential_distribution(),.
|
|
double | cumsum_power (size_t n, double k=1) |
| Result of the cumulative sum of n random numbers, distributed according to a power distribution, see power_distribution(),.
|
|
double | cumsum_gamma (size_t n, double k=1, double scale=1) |
| Result of the cumulative sum of n random numbers, distributed according to a gamma distribution, see gamma_distribution(),.
|
|
double | cumsum_pareto (size_t n, double k=1, double scale=1) |
| Result of the cumulative sum of n random numbers, distributed according to a Pareto distribution, see pareto_distribution(),.
|
|
double | cumsum_weibull (size_t n, double k=1, double scale=1) |
| Result of the cumulative sum of n random numbers, distributed according to a weibull distribution, see weibull_distribution(),.
|
|
double | cumsum_normal (size_t n, double mu=0, double sigma=1) |
| Result of the cumulative sum of n random numbers, distributed according to a normal distribution, see normal_distribution(),.
|
|
template<typename Iterator > |
void | shuffle (Iterator begin, Iterator end) |
| Draw uniformly distributed permutation and permute the given STL container.
|
|
template<class P > |
auto | decide (const P &p) -> typename detail::return_type< bool, P >::type |
| Decide based on probability per value.
|
|
template<class P , class R > |
R | decide (const P &p) |
| Decide based on probability per value.
|
|
template<class P , class R > |
void | decide (const P &p, R &ret) |
| Decide based on probability per value.
|
|
template<class P , class T > |
auto | decide_masked (const P &p, const T &mask) -> typename detail::return_type< bool, P >::type |
| Decide based on probability per value.
|
|
template<class P , class T , class R > |
R | decide_masked (const P &p, const T &mask) |
| Decide based on probability per value.
|
|
template<class P , class T , class R > |
void | decide_masked (const P &p, const T &mask, R &ret) |
| Decide based on probability per value.
|
|
double | random () |
| Generate a random number \( 0 \leq r \leq 1 \).
|
|
template<class S > |
auto | random (const S &shape) -> typename detail::return_type< double, S >::type |
| Generate an nd-array of random numbers \( 0 \leq r \leq 1 \).
|
|
template<class R , class S > |
R | random (const S &shape) |
| Generate an nd-array of random numbers \( 0 \leq r \leq 1 \).
|
|
template<class I , std::size_t L> |
auto | random (const I(&shape)[L]) -> typename detail::return_type_fixed< double, L >::type |
| Generate an nd-array of random numbers \( 0 \leq r \leq 1 \).
|
|
template<class R , class I , std::size_t L> |
R | random (const I(&shape)[L]) |
| Generate an nd-array of random numbers \( 0 \leq r \leq 1 \).
|
|
template<typename T > |
T | randint (T high) |
| Generate a random integer \( 0 \leq r < bound \).
|
|
template<class S , typename T > |
auto | randint (const S &shape, T high) -> typename detail::return_type< T, S >::type |
| Generate an nd-array of random integers \( 0 \leq r \leq bound \).
|
|
template<class R , class S , typename T > |
R | randint (const S &shape, T high) |
| Generate an nd-array of random integers \( 0 \leq r \leq bound \).
|
|
template<class I , std::size_t L, typename T > |
auto | randint (const I(&shape)[L], T high) -> typename detail::return_type_fixed< T, L >::type |
| Generate an nd-array of random integers \( 0 \leq r \leq bound \).
|
|
template<class R , class I , std::size_t L, typename T > |
R | randint (const I(&shape)[L], T high) |
| Generate an nd-array of random integers \( 0 \leq r \leq bound \).
|
|
template<class S , typename T , typename U > |
auto | randint (const S &shape, T low, U high) -> typename detail::return_type< T, S >::type |
| Generate an nd-array of random integers \( low \leq r < high \).
|
|
template<class R , class S , typename T , typename U > |
R | randint (const S &shape, T low, U high) |
| Generate an nd-array of random integers \( low \leq r < high \).
|
|
template<class I , std::size_t L, typename T , typename U > |
auto | randint (const I(&shape)[L], T low, U high) -> typename detail::return_type_fixed< T, L >::type |
| Generate an nd-array of random integers \( low \leq r < high \).
|
|
template<class R , class I , std::size_t L, typename T , typename U > |
R | randint (const I(&shape)[L], T low, U high) |
| Generate an nd-array of random integers \( low \leq r < high \).
|
|
double | delta (double scale=1) |
| Return a number distributed according to a delta distribution.
|
|
template<class S > |
auto | delta (const S &shape, double scale=1) -> typename detail::return_type< double, S >::type |
| Generate an nd-array of numbers that are delta distribution.
|
|
template<class R , class S > |
R | delta (const S &shape, double scale=1) |
| Generate an nd-array of numbers that are delta distribution.
|
|
template<class I , std::size_t L> |
auto | delta (const I(&shape)[L], double scale=1) -> typename detail::return_type_fixed< double, L >::type |
| Generate an nd-array of numbers that are delta distribution.
|
|
template<class R , class I , std::size_t L> |
R | delta (const I(&shape)[L], double scale=1) |
| Generate an nd-array of numbers that are delta distribution.
|
|
double | exponential (double scale=1) |
| Return a random number distributed according to an exponential distribution.
|
|
template<class S > |
auto | exponential (const S &shape, double scale=1) -> typename detail::return_type< double, S >::type |
| Generate an nd-array of random numbers distributed according to an exponential distribution.
|
|
template<class R , class S > |
R | exponential (const S &shape, double scale=1) |
| Generate an nd-array of random numbers distributed according to an exponential distribution.
|
|
template<class I , std::size_t L> |
auto | exponential (const I(&shape)[L], double scale=1) -> typename detail::return_type_fixed< double, L >::type |
| Generate an nd-array of random numbers distributed according to an exponential distribution.
|
|
template<class R , class I , std::size_t L> |
R | exponential (const I(&shape)[L], double scale=1) |
| Generate an nd-array of random numbers distributed according to an exponential distribution.
|
|
double | power (double k=1) |
| Return a random number distributed according to an power distribution.
|
|
template<class S > |
auto | power (const S &shape, double k=1) -> typename detail::return_type< double, S >::type |
| Generate an nd-array of random numbers distributed according to an power distribution.
|
|
template<class R , class S > |
R | power (const S &shape, double k=1) |
| Generate an nd-array of random numbers distributed according to an power distribution.
|
|
template<class I , std::size_t L> |
auto | power (const I(&shape)[L], double k=1) -> typename detail::return_type_fixed< double, L >::type |
| Generate an nd-array of random numbers distributed according to an power distribution.
|
|
template<class R , class I , std::size_t L> |
R | power (const I(&shape)[L], double k=1) |
| Generate an nd-array of random numbers distributed according to an power distribution.
|
|
double | gamma (double k=1, double scale=1) |
| Return a random number distributed according to a Gamma distribution.
|
|
template<class S > |
auto | gamma (const S &shape, double k=1, double scale=1) -> typename detail::return_type< double, S >::type |
| Generate an nd-array of random numbers distributed according to a Gamma distribution.
|
|
template<class R , class S > |
R | gamma (const S &shape, double k=1, double scale=1) |
| Generate an nd-array of random numbers distributed according to a Gamma distribution.
|
|
template<class I , std::size_t L> |
auto | gamma (const I(&shape)[L], double k=1, double scale=1) -> typename detail::return_type_fixed< double, L >::type |
| Generate an nd-array of random numbers distributed according to a Gamma distribution.
|
|
template<class R , class I , std::size_t L> |
R | gamma (const I(&shape)[L], double k=1, double scale=1) |
| Generate an nd-array of random numbers distributed according to a Gamma distribution.
|
|
double | pareto (double k=1, double scale=1) |
| Return a random number distributed according to a Pareto distribution.
|
|
template<class S > |
auto | pareto (const S &shape, double k=1, double scale=1) -> typename detail::return_type< double, S >::type |
| Generate an nd-array of random numbers distributed according to a Pareto distribution.
|
|
template<class R , class S > |
R | pareto (const S &shape, double k=1, double scale=1) |
| Generate an nd-array of random numbers distributed according to a Pareto distribution.
|
|
template<class I , std::size_t L> |
auto | pareto (const I(&shape)[L], double k=1, double scale=1) -> typename detail::return_type_fixed< double, L >::type |
| Generate an nd-array of random numbers distributed according to a Pareto distribution.
|
|
template<class R , class I , std::size_t L> |
R | pareto (const I(&shape)[L], double k=1, double scale=1) |
| Generate an nd-array of random numbers distributed according to a Pareto distribution.
|
|
double | weibull (double k=1, double scale=1) |
| Return a random number distributed according to a Weibull distribution.
|
|
template<class S > |
auto | weibull (const S &shape, double k=1, double scale=1) -> typename detail::return_type< double, S >::type |
| Generate an nd-array of random numbers distributed according to a Weibull distribution.
|
|
template<class R , class S > |
R | weibull (const S &shape, double k=1, double scale=1) |
| Generate an nd-array of random numbers distributed according to a Weibull distribution.
|
|
template<class I , std::size_t L> |
auto | weibull (const I(&shape)[L], double k=1, double scale=1) -> typename detail::return_type_fixed< double, L >::type |
| Generate an nd-array of random numbers distributed according to a Weibull distribution.
|
|
template<class R , class I , std::size_t L> |
R | weibull (const I(&shape)[L], double k=1, double scale=1) |
| Generate an nd-array of random numbers distributed according to a Weibull distribution.
|
|
double | normal (double mu=0, double sigma=1) |
| Return a random number distributed according to a normal distribution.
|
|
template<class S > |
auto | normal (const S &shape, double mu=0, double sigma=1) -> typename detail::return_type< double, S >::type |
| Generate an nd-array of random numbers distributed according to a normal distribution.
|
|
template<class R , class S > |
R | normal (const S &shape, double mu=0, double sigma=1) |
| Generate an nd-array of random numbers distributed according to a normal distribution.
|
|
template<class I , std::size_t L> |
auto | normal (const I(&shape)[L], double mu=0, double sigma=1) -> typename detail::return_type_fixed< double, L >::type |
| Generate an nd-array of random numbers distributed according to a normal distribution.
|
|
template<class R , class I , std::size_t L> |
R | normal (const I(&shape)[L], double mu=0, double sigma=1) |
| Generate an nd-array of random numbers distributed according to a normal distribution.
|
|
double | draw (enum prrng::distribution distribution, std::vector< double > parameters=std::vector< double >{}, bool append_default=true) |
| Get a random number according to some distribution.
|
|
template<class R , class S > |
R | draw (const S &shape, enum prrng::distribution distribution, std::vector< double > parameters=std::vector< double >{}, bool append_default=true) |
| Get an nd-array of random numbers according to some distribution.
|
|
double | cumsum (size_t n, enum prrng::distribution distribution, std::vector< double > parameters=std::vector< double >{}, bool append_default=true) |
| Get the cumulative sum of n random numbers according to some distribution.
|
|