柏木提供的答案: 官方提供的例子: testData = table(1 2 3 4 5 6 7 8 9 10 as `id,0 10 10 5 5 99 99 8 9 10 as `val) asof(cutPoints(testData.val,3),testData.val) 实际的例子: select symbol,LABORGETCASH, asof(cutPoints(int(LABORGETCASH)*100,5),LABORGETCASH) as lv from ( select date,symbol,round(LABORGETCA...
回答于 2022-06-17 09:14
如图所示,由于百分位数确定的方式默认是通过线性拟合再代入0.8分位点得到的结果,因此通过S>quantile(S,0.8)筛选出来的数据数量并不确定。
回答于 2022-04-14 09:50
可以再创建一个共享流表(table2),利用handler将subscribeTalbe订阅(table1)的数据进行特征计算,计算后的表结构为table2,createTimeSeriesEngine的dummyTable设置为table2,即可实现。 share streamTable(1000:0, `time`a, [TIMESTAMP, DOUBLE]) as table1 share streamTable(1000:0, `time`a`b, [TIMESTAMP, DOUBLE,...
回答于 2022-03-25 12:27