MathCumulativeDistributionWeibull

通过a和b参数,计算随机变量x的威布尔分布函数值。出错情况下它返回NaN

double  MathCumulativeDistributionWeibull(
   const double  x,             // 随机变量值
   const double  a,             // 分布参数(shape)
   const double  b,             // 分布参数(scale)
   const bool    tail,          // 计算标识,如果true,则计算不超过随机变量x的概率
   const bool    log_mode,      // 计算数值对数的标识,如果log_mode=true,则计算概率的自然对数
   int&          error_code     // 存储错误代码的变量
   );

通过a和b参数,计算随机变量x的威布尔分布函数值。出错情况下它返回NaN

double  MathCumulativeDistributionWeibull(
   const double  x,             // 随机变量值
   const double  a,             // 分布参数(shape)
   const double  b,             // 分布参数(scale)
   int&          error_code     // 存储错误代码的变量
   );

通过a和b参数,计算随机变量数组x[]的威布尔分布函数值。出错情况下它返回false。R语言的pweibull()模拟。

bool  MathCumulativeDistributionWeibull(
   const double& x[],            // 随机变量值数组
   const double  a,              // 分布参数(shape)
   const double  b,              // 分布参数(scale)
   const bool    tail,           // 计算标识,如果true,则计算不超过随机变量x的概率
   const bool    log_mode,       //计算数值对数的标识,如果log_mode=true,则计算概率的自然对数
   double&       result[]        // 概率函数值数组
   );

通过a和b参数,计算随机变量数组x[]的威布尔分布函数值。出错情况下它返回false。

bool  MathCumulativeDistributionWeibull(
   const double& x[],            // 随机变量值数组
   const double  a,              // 分布参数(shape)
   const double  b,              // 分布参数(scale)
   double&       result[]        // 概率函数值数组
   );

参数

x

[in]  随机变量值。

x[]

[in]  随机变量值数组。

a

[in]  分布参数(scale)。

b

[in]  分布参数(shape)。

tail

[in]  计算标识。如果true,则计算不超过随机变量x的概率。

log_mode

[in]  计算数值对数的标识。如果log_mode=true,则计算概率的自然对数。

error_code

[out]  存储错误代码的变量。

result[]

[out]  概率函数值数组。