nicolaspanel / numjs

Like NumPy, in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing functions like 'average'

MasterJames opened this issue · comments

I was wondering if there is something somewhere even though it's not working like numpy

> squareArray
[ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ]
> let sqAverage = nj.average(squareArray)
TypeError: nj.average is not a function

Cmd is 'mean'
@MasterJames please, read the doc

Right okay great again sorry (for the eager Noob effect) it's all in there! I was just thinking it would be similar to numpy (cut and pasting from tutorial run through), and hopeful that it does do everything needed. It certainly doesn't have to be syntactically exact. It just confused me out of the gate.
I will read through the excellent documentation. Loving it!