Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

RunKit + npm: topsis

node v10.24.1
version: 1.0.0
endpointsharetweet
const linearAlgebra = require('linear-algebra')(), Vector = linearAlgebra.Vector, Matrix = linearAlgebra.Matrix; const topsis = require("topsis"); let m = new Matrix([[2, 5, 5], [60, 26, 4], [20, 20, 4], [500, 2, 4], [50, 23, 3], [25, 10, 1]]); let ia = ['min', 'min', 'max']; let w = [0.27,0.33,0.40]; topsis.getBest(m,w,ia);
Created from: https://npm.runkit.com/topsis
Loading…

no comments

    sign in to comment