Installation
Install the LOESS library for your preferred language.
From NPM (recommended)
Section titled “From NPM (recommended)”npm install fastloessFrom Source
Section titled “From Source”git clone https://github.com/thisisamirv/loess-projectcd loess-project/bindings/nodejsnpm installnpm run buildCheck the Package Version
Section titled “Check the Package Version”Read the Node.js package version without loading the native addon:
const { version } = require('fastloess/version');console.log(version);3.0.0Verify Installation
Section titled “Verify Installation”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!