@thi.ng/vectors
Version:
Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts
15 lines • 399 B
TypeScript
import type { ReadonlyVec } from "./api.js";
/**
* Computes the covariance coefficient between the two given vectors.
*
* @remarks
* References:
*
* - https://en.wikipedia.org/wiki/Covariance
* - https://www.youtube.com/watch?v=2bcmklvrXTQ
*
* @param a -
* @param b -
*/
export declare const covariance: (a: ReadonlyVec, b: ReadonlyVec) => number;
//# sourceMappingURL=covariance.d.ts.map