weibull#

ワイブル分布の乱数を生成します。

説明#

weibull クラス・オブジェクトは、generate 関数で使用され、変位 a、とスケール係数 β、および形状 \(\alpha\) を持つワイブル分布乱数を提供します。ここで、\(\alpha, \beta, a \in R ; \alpha > 0, \beta > 0\) です。

確率密度関数は次のように表されます。

\[\begin{split}f_{a, \alpha, \beta}(x) = \begin{cases} \frac{\alpha}{\beta^\alpha} (x - a)^{\alpha - 1} \exp \left( - {\left( \frac{x-a}{\beta} \right)}^{\alpha} \right), & x \geq a \\ 0, & x < a \end{cases}\end{split}\]

累積分布関数は次のようになります。

\[\begin{split}F_{a, \alpha, \beta}(x) = \begin{cases} 1 - \exp \left( - {\left( \frac{x-a}{\beta} \right)}^{\alpha} \right), & x \geq a \\ 0, & x < a \end{cases}, - \infty < x < + \infty\end{split}\]

製品および性能に関する情報

性能は、使用状況、構成、およびその他の要因によって異なります。詳細は、https://www.intel.com/PerformanceIndex (英語) を参照してください。改訂 #20201201

API#

構文#

namespace oneapi::mkl::rng { 
  template<typename RealType = float, 
           typename Method = weibull_method::by_default> 
  class weibull { 
  public: 
    using method_type = Method; 
    using result_type = RealType; 

    weibull(): weibull((Real_Type)1.0, (RealType)0.0, (RealType)1.0){} 
    explicit weibull(RealType alpha, RealType a, RealType beta); 
    explicit weibull(const param_type& pt); 

    RealType alpha() const; 
    RealType a() const; 
    RealType beta() const; 
    param_type param() const; 
    void param(const param_type& pt); 
  }; 
}

サポートされるデバイス: CPU と GPU。

インクルード・ファイル#

  • oneapi/mkl/rng.hpp

テンプレート・パラメーター#

typename RealType = float

生成された値のタイプ。固有の値は次のとおりです:

float

double

typename Method = oneapi::mkl::rng::weibull_method::by_default

生成メソッド。固有の値は次のとおりです: oneapi::mkl::rng::weibull_method::icdf

oneapi::mkl::rng::weibull_method::icdf_accurate

配布テンプレート・パラメーター・メソッドの説明を参照してください。

入力パラメーター#

名前

タイプ

説明

alpha

RealType (float, double)

形状 α

a

RealType (float, double)

変位 a

beta

RealType (float, double)

スケール係数 β。