Namespaces
Variants

std::binomial_distribution<IntType>:: binomial_distribution

From cppreference.net
binomial_distribution ( ) : binomial_distribution ( 1 ) { }
(1) (C++11以降)
explicit binomial_distribution ( IntType t, double p = 0.5 ) ;
(2) (C++11以降)
explicit binomial_distribution ( const param_type & params ) ;
(3) (C++11以降)

新しい分布オブジェクトを構築します。

2) 分布パラメータとして t p を使用します。
3) params を分布パラメータとして使用します。

パラメータ

t - 分布パラメータ t (試行回数)
p - 分布パラメータ p (試行が true を生成する確率)
params - 分布パラメータセット

注記

以下の条件を満たす必要があります: 0 ≤ p ≤ 1 かつ 0 ≤ t

不具合報告

以下の動作変更の欠陥報告書は、以前に公開されたC++規格に対して遡及的に適用されました。

DR Applied to Behavior as published Correct behavior
P0935R0 C++11 default constructor was explicit made implicit