UNPKG

330 BJavaScriptView Raw
1class Kernel {
2 /**
3 * Evaluate the kernel on a pair of data points
4 *
5 * @abstract
6 *
7 * @param Array[float] x First input value
8 * @param Array[float] y Second input value
9 * @return float Kernel output
10 */
11 apply(x, y) { throw new Error('Method must be implemented child class.'); }
12}
13
14export default Kernel;