Skip to content

Installation

Install the LOESS library for your preferred language.

Terminal window
npm install fastloess
Terminal window
git clone https://github.com/thisisamirv/loess-project
cd loess-project/bindings/nodejs
npm install
npm run build

Read the Node.js package version without loading the native addon:

const { version } = require('fastloess/version');
console.log(version);
3.0.0

const fl = require('fastloess');
const x = new Float64Array([1.0, 2.0, 3.0]);
const y = new Float64Array([2.0, 4.0, 6.0]);
const model = new fl.Loess({});
const result = model.fit(x, y);
console.log("Installed successfully!");
Installed successfully!