How to use the jstat.corrcoeff function in jstat

To help you get started, we’ve selected a few jstat examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zhilu-nanjing / financial-cell / src / calc / expression_fn / lib / statistical.js View on Github external
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);
};
github elshor / dstools / src / corrmap.js View on Github external
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