Add random::weighted_distribution default constructor
This commit is contained in:
parent
11c431f38c
commit
11962abf8f
1 changed files with 2 additions and 0 deletions
|
|
@ -11,6 +11,8 @@ namespace psemek::random
|
|||
template <typename T>
|
||||
struct weighted_distribution
|
||||
{
|
||||
weighted_distribution() = default;
|
||||
|
||||
weighted_distribution(std::vector<T> frequencies)
|
||||
: prefix_sum_(std::move(frequencies))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue