rbf-dda
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

RBF DDA

Radial Basis Function (RBF) with Dynamic Decay Adjustment (DDA) algorithm.

npm version License: MIT Build Status

Install

npm install rbf-dda

or

yarn add rbf-dda

Usage

const RBFDDA = require("rbf-dda");
 
const points = [
  [5.1, 3.5, 1.4, 0.2],
  [5.5, 2.6, 4.4, 1.2],
  [4.7, 3.2, 1.3, 0.2],
  [7.1, 3.0, 5.9, 2.1],
  [6.3, 2.5, 4.9, 1.5]
];
 
const classes = [
  "Iris-setosa",
  "Iris-versicolor",
  "Iris-setosa",
  "Iris-virginica",
  "Iris-versicolor"
];
 
const rbfdda = new RBFDDA(points, classes);
rbfdda.training();
 
const classValue = rbfdda.classification([5.8, 2.6, 4.0, 1.2]);
 
console.log(classValue); // => Iris-versicolor

NPM Statistics

Download stats for this NPM package

NPM

License

RBF DDA is open source software licensed as MIT.

Package Sidebar

Install

npm i rbf-dda

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

9.95 kB

Total Files

9

Last publish

Collaborators

  • andrelmlins