📄 percentiles_from_samples1d.m
字号:
function loc=percentiles_from_samples1d(samples,percentiles)% Function computes location of percentiles in a sample of a one-dimensional% variable%% Written by: E. R.: February 22, 2004% Last updated: February 16, 2006: Change the criterion for change from percent to fraction in line 15%% loc=percentiles_from_samples1d(samples,percentiles)% INPUT% samples samples of the random variable% percentiles percentiles as fractions or in percent% OUTPUT% loc locations such that percentiles(n) of the samples are <= loc(n)lx=length(samples)-1;if any(percentiles > 1) percentiles=percentiles/100;endloc=interp1(0:lx,sort(samples),lx*percentiles);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -