Calculates the cross-correlation of two functions at a value.
The first function
The second function
The value
const sine = Chalkboard.real.define((x) => Math.sin(x));const cosine = Chalkboard.real.define((x) => Math.cos(x));const value = Chalkboard.calc.correlation(sine, cosine, 0); // Returns their correlation at zero lag Copy
const sine = Chalkboard.real.define((x) => Math.sin(x));const cosine = Chalkboard.real.define((x) => Math.cos(x));const value = Chalkboard.calc.correlation(sine, cosine, 0); // Returns their correlation at zero lag
Calculates the cross-correlation of two functions at a value.