ml-kernel-gaussian

June 5, 2026 ยท View on GitHub

NPM version build status npm download

The gaussian (radial basis function) kernel.

Installation

$ npm i ml-kernel-gaussian

Usage

new GaussianKernel(options)

Options:

  • sigma - value for the sigma parameter (default: 1).

kernel.compute(x, y)

Returns the dot product between x and y in feature space.

License

MIT

Contents

  1. 1Installation
  2. 2Usage
  3. 2.1new GaussianKernel(options)
  4. 2.2kernel.compute(x, y)
  5. 3License