4
我正在計算兩個數組的相關性。Commons Maths:Pearsons Correlation會返回NaN。
x = {1,2,3};
y = {1,1,1};
從apache commons數學的PearsonsCorrelation是返回這些數組的NaN。即
PearsonsCorrelation corr = new PearsonsCorrelation();
double result = corr.correlation(x, y); //result = NaN.
爲什麼不是答案0.0?