|
LMMC
Lamina Mathematic core
|
#include "probability_internal.h"结构体 | |
| struct | distribution_parameters_t |
类型定义 | |
| typedef lmmc_status_t(*) | distribution_eval_fn(lmmc_real_t, const void *, lmmc_real_t *) |
函数 | |
| lmmc_status_t | lmmc_dist_normal_quantile (lmmc_real_t p, lmmc_real_t mu, lmmc_real_t sigma, lmmc_real_t *out) |
| 正态分布分位数函数(逆 CDF)。 | |
| lmmc_status_t | lmmc_dist_t_quantile (lmmc_real_t p, lmmc_real_t df, lmmc_real_t *out) |
| t 分布分位数函数。 | |
| lmmc_status_t | lmmc_dist_chi2_quantile (lmmc_real_t p, lmmc_real_t df, lmmc_real_t *out) |
| χ² 分布分位数函数。 | |
| lmmc_status_t | lmmc_dist_f_quantile (lmmc_real_t p, lmmc_real_t df1, lmmc_real_t df2, lmmc_real_t *out) |
| F 分布分位数函数。 | |
| lmmc_status_t | lmmc_dist_gamma_quantile (lmmc_real_t p, lmmc_real_t shape, lmmc_real_t scale, lmmc_real_t *out) |
| 伽马分布分位数函数。 | |
| lmmc_status_t | lmmc_dist_beta_quantile (lmmc_real_t p, lmmc_real_t alpha, lmmc_real_t beta_param, lmmc_real_t *out) |
| 贝塔分布分位数函数。 | |
| struct distribution_parameters_t |
在文件 probability_quantiles.c 第 51 行定义.
| 成员变量 | ||
|---|---|---|
| lmmc_real_t | first | |
| lmmc_real_t | second | |
| typedef lmmc_status_t(*) distribution_eval_fn(lmmc_real_t, const void *, lmmc_real_t *) |
在文件 probability_quantiles.c 第 48 行定义.
| lmmc_status_t lmmc_dist_normal_quantile | ( | lmmc_real_t | p, |
| lmmc_real_t | mu, | ||
| lmmc_real_t | sigma, | ||
| lmmc_real_t * | out ) |
正态分布分位数函数(逆 CDF)。
位置尺度变换使用融合乘加,使 sigma*z+mu 仅舍入一次,并避免最终 结果可表示时乘积中间值的虚假溢出。
在文件 probability_quantiles.c 第 298 行定义.
引用了 lmmc_dist_normal_quantile(), LMMC_STATUS_INVALID_ARGUMENT, LMMC_STATUS_NUMERICAL_FAILURE , 以及 LMMC_STATUS_OK.
被这些函数引用 lmmc_dist_normal_quantile() , 以及 lmmc_std_stats_normal_quantile().
| lmmc_status_t lmmc_dist_t_quantile | ( | lmmc_real_t | p, |
| lmmc_real_t | df, | ||
| lmmc_real_t * | out ) |
t 分布分位数函数。
超大自由度使用标准正态分位数,避免退化的不完全 Beta 反演。
在文件 probability_quantiles.c 第 310 行定义.
引用了 distribution_parameters_t::first, lmmc_dist_t_quantile(), LMMC_STATUS_INVALID_ARGUMENT, LMMC_STATUS_NUMERICAL_FAILURE, LMMC_STATUS_OK , 以及 distribution_parameters_t::second.
被这些函数引用 lmmc_dist_t_quantile() , 以及 lmmc_std_stats_t_quantile().
| lmmc_status_t lmmc_dist_chi2_quantile | ( | lmmc_real_t | p, |
| lmmc_real_t | df, | ||
| lmmc_real_t * | out ) |
χ² 分布分位数函数。
在文件 probability_quantiles.c 第 328 行定义.
引用了 distribution_parameters_t::first, lmmc_dist_chi2_quantile(), LMMC_STATUS_INVALID_ARGUMENT , 以及 distribution_parameters_t::second.
被这些函数引用 lmmc_dist_chi2_quantile() , 以及 lmmc_std_stats_chi2_quantile().
| lmmc_status_t lmmc_dist_f_quantile | ( | lmmc_real_t | p, |
| lmmc_real_t | df1, | ||
| lmmc_real_t | df2, | ||
| lmmc_real_t * | out ) |
F 分布分位数函数。
在文件 probability_quantiles.c 第 347 行定义.
引用了 distribution_parameters_t::first, lmmc_dist_f_quantile(), LMMC_STATUS_INVALID_ARGUMENT , 以及 distribution_parameters_t::second.
被这些函数引用 lmmc_dist_f_quantile() , 以及 lmmc_std_stats_f_quantile().
| lmmc_status_t lmmc_dist_gamma_quantile | ( | lmmc_real_t | p, |
| lmmc_real_t | shape, | ||
| lmmc_real_t | scale, | ||
| lmmc_real_t * | out ) |
伽马分布分位数函数。
在文件 probability_quantiles.c 第 360 行定义.
引用了 distribution_parameters_t::first, lmmc_dist_gamma_quantile(), LMMC_STATUS_INVALID_ARGUMENT , 以及 distribution_parameters_t::second.
被这些函数引用 lmmc_dist_gamma_quantile() , 以及 lmmc_std_stats_gamma_quantile().
| lmmc_status_t lmmc_dist_beta_quantile | ( | lmmc_real_t | p, |
| lmmc_real_t | alpha, | ||
| lmmc_real_t | beta_param, | ||
| lmmc_real_t * | out ) |
贝塔分布分位数函数。
在文件 probability_quantiles.c 第 378 行定义.
引用了 distribution_parameters_t::first, lmmc_dist_beta_quantile(), LMMC_STATUS_INVALID_ARGUMENT , 以及 distribution_parameters_t::second.
被这些函数引用 lmmc_dist_beta_quantile() , 以及 lmmc_std_stats_beta_quantile().