Home Libraries People FAQ More

#### 非成員屬性

##### 累積分佈函數
template <class RealType, class Policy>
RealType cdf(const Distribution-Type<RealType, Policy>& dist, const RealType& x);

##### 累積分佈函數補集
template <class Distribution, class RealType>
RealType cdf(const Unspecified-Complement-Type<Distribution, RealType>& comp);

// 標準正態分佈對像:
boost::math::normal norm;
// 對於x=2.0，打印殘存函數:
std::cout << cdf(complement(norm, 2.0)) << std::endl;

##### 故障率函數(Hazard Function)
template <class RealType, class Policy>
RealType hazard(const Distribution-Type<RealType, Policy>& dist, const RealType& x);

注意 一些作者將這個函數稱作條件失敗密度函數(conditional failure density function)而不是故障率函數。
##### 累積危險函數(Cumulative Hazard Function)
template <class RealType, class Policy>
RealType chf(const Distribution-Type<RealType, Policy>& dist, const RealType& x);

注意 一些作者將這個函數稱作「故障率函數」。
##### 均值
template<class RealType, class Policy>
RealType mean(const Distribution-Type<RealType, Policy>& dist);

##### 中位數
template<class RealType, class Policy>
RealType median(const Distribution-Type<RealType, Policy>& dist);

##### 眾數
template<class RealType, Policy>
RealType mode(const Distribution-Type<RealType, Policy>& dist);

##### 概率密度函數
template <class RealType, class Policy>
RealType pdf(const Distribution-Type<RealType, Policy>& dist, const RealType& x);

##### 值域
template<class RealType, class Policy>
std::pair<RealType, RealType> range(const Distribution-Type<RealType, Policy>& dist);

##### 分位點
template <class RealType, class Policy>
RealType quantile(const Distribution-Type<RealType, Policy>& dist, const RealType& p);

##### 概率補集的分位點.
template <class Distribution, class RealType>
RealType quantile(const Unspecified-Complement-Type<Distribution, RealType>& comp);

// 定義一個標準的正態分佈:
boost::math::normal norm;
// 打印概率補集為 0.05的x值:
std::cout << quantile(complement(norm, 0.05)) << std::endl;

##### 標準差
template <class RealType, class Policy>
RealType standard_deviation(const Distribution-Type<RealType, Policy>& dist);

##### 支持(support)
template<class RealType, class Policy>
std::pair<RealType, RealType> support(const Distribution-Type<RealType, Policy>& dist);

##### 方差
template <class RealType, class Policy>
RealType variance(const Distribution-Type<RealType, Policy>& dist);

##### 偏斜(Skewness)
template <class RealType, class Policy>
RealType skewness(const Distribution-Type<RealType, Policy>& dist);

##### 峰態(Kurtosis)
template <class RealType, class Policy>
RealType kurtosis(const Distribution-Type<RealType, Policy>& dist);

kertosis = β2= μ4 / μ22

kurtosis_excess = 'proper' kurtosis - 3

'合適的(Proper)'峰態的值從0 到+∞。

##### 峰態超越(Kurtosis excess)
template <class RealType, Policy>
RealType kurtosis_excess(const Distribution-Type<RealType, Policy>& dist);

kurtosis excess = γ2= μ4 / μ22- 3 = kurtosis - 3

Kurtosis excess 的值從 -2 到 +∞。

kurtosis = kurtosis_excess +3;