pf_Quantile
简述
计算R矩阵中指定字段Fname的1-ConfidenceInterval/100分位数。若methodtype为0则直接返回1-ConfidenceInterval/100分位数,否则返回0到1-ConfidenceInterval/100分位数的平均值。
pf_Quantile(r:array;fname:String;ConfidenceInterval:integer;days:integer;MethodType:Integer)
名称 | 类型 | 说明 |
---|
r | array | 数据表类型 |
fname | String | 字符串 |
ConfidenceInterval | integer | 实数 |
days | integer | 整数 |
MethodType | Integer | 整数 |
返回 | | 实数 |
SetSysParam(PN_Stock(),'SZ000001');
SetSysParam(PN_Date(),20180801T);
SetSysParam(PN_Cycle(),cy_day());
arr1:=Nday(250,'截止日',sp_time(),'涨幅(%)',StockZf3());
return pf_Quantile(arr1,'涨幅(%)',95,0,0);
//返回:-3.56