make Primitive Correlation
Returns a primitive correlation function for the given method token.
Return
function taking two DoubleArrays and returning the correlation
Parameters
method
correlation method (Constants.CORRELATION_PEARSON, Constants.CORRELATION_KENDALL)