z=(x-μ)/σ;其中z为标准分数;x为某一具体分数,μ为平均数,σ为标准差。
stockArr:=getbkbydate('SH000016',20190201T);
s:=select ['StockID'] as '代码',
["StockName"] as "名称",
['price'] as '收盘',
stockzf(['date'],['date']) as '涨幅(%)'
from markettable datekey 20190201T to 20190201T of stockArr end;
ZValue(s,'涨幅(%)');
return s
返回:
