![]() |
mutable
A Database System for Research and Fast Prototyping
|
A distribution of values in range [0; 1] that are skewed towards 0. More...
Public Types | |
| using | real_type = RealType |
Public Member Functions | |
| skewed_distribution (real_type alpha) | |
| real_type | alpha () const |
| template<typename Generator > | |
| real_type | operator() (Generator &&g) |
Private Attributes | |
| real_type | alpha_ |
| std::uniform_real_distribution< real_type > | d_ |
A distribution of values in range [0; 1] that are skewed towards 0.
The alpha parameter affects the factor of skewed-ness, with alpha = 1 causing a uniform distribution, alpha < 1 causing a skew towards 1, and alpha > 1 causing a skew towards 0.
Definition at line 31 of file cardinality_gen.cpp.
| using skewed_distribution< RealType >::real_type = RealType |
Definition at line 33 of file cardinality_gen.cpp.
|
inline |
Definition at line 41 of file cardinality_gen.cpp.
References skewed_distribution< RealType >::alpha_.
|
inline |
Definition at line 48 of file cardinality_gen.cpp.
References skewed_distribution< RealType >::alpha_.
|
inline |
Definition at line 51 of file cardinality_gen.cpp.
References skewed_distribution< RealType >::alpha_, and skewed_distribution< RealType >::d_.
|
private |
Definition at line 37 of file cardinality_gen.cpp.
Referenced by skewed_distribution< RealType >::alpha(), skewed_distribution< RealType >::operator()(), and skewed_distribution< RealType >::skewed_distribution().
|
private |
Definition at line 38 of file cardinality_gen.cpp.
Referenced by skewed_distribution< RealType >::operator()().