Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function CORREL(array1, array2) {
array1 = parseNumberArray(flatten(array1));
array2 = parseNumberArray(flatten(array2));
if (anyIsError(array1, array2)) {
return Error(ERROR_VALUE);
}
return jStat.corrcoeff(array1, array2);
};
data = Collection(data);
let fields=[], fields1 = data.fields().data();
let vectors=[], vectors1 = fields1.map((field)=>data.column(field).data());
//remove fields that have textual values
for(let f = 0;f