matlab中应该如​何自定义一个累积分布​函数(cdf)呢?。

如题,matlab中应该如何自定义一个累积分布函数(cdf)呢?比如拉普拉斯的cdfy=0.5.*(1+sign(xi-b).*(1-exp(-abs(xi-a)./b)));应该如何去定义呢,因为想做ks检验
直接这样做似乎不行 kstest(xi,[xi,y],0.05);
报错 CDF must define an increasing function of X.
所以想问一下麻烦各位老师了,

 Accepted Answer

sefnehx
sefnehx on 19 May 2023

0 votes

Ⅰ-2 累加分布函数
函数名 对应分布的累加函数
betacdf 贝塔分布的累加函数
binocdf 二项分布的累加函数
chi2cdf 卡方分布的累加函数
expcdf 指数分布的累加函数
evcdf 最大值型的极值I型分布(Gumbel)的累加函数
fcdf f分布的累加函数
gamcdf 伽玛分布的累加函数
geocdf 几何分布的累加函数
hygecdf 超几何分布的累加函数
logncdf 对数正态分布的累加函数
nbincdf 负二项分布的累加函数
ncfcdf 非中心f分布的累加函数
nctcdf 非中心t分布的累加函数
ncx2cdf 非中心卡方分布的累加函数
normcdf 正态(高斯)分布的累加函数
poisscdf 泊松分布的累加函数
raylcdf 雷利分布的累加函数
tcdf 学生氏t分布的累加函数
unidcdf 离散均匀分布的累加函数
unifcdf 连续均匀分布的累加函数
weibcdf 威布尔分布的累加函数

More Answers (0)

Tags

Asked:

on 19 May 2023

Answered:

on 19 May 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!