简体   繁体   中英

Does DolphinDB have a function to calculate the correlation between two columns?

I want to calculate the correlation between two columns, does DolphinDB have such functions? It seems that the function "corr" only apply to the vector. I get the error as below:

corr(x, y) => getDoubleConst method not supported

如果 x, y 是内存表 t 的两列,则正确的脚本如下:

corr(t.x, t.y)   //here t.x and t.y are vectors.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM