maxto / ubique

A mathematical and quantitative library for Javascript and Node.js

Home Page:http://maxto.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

in histc wrong names

carbuz opened this issue · comments

in histc function the freq field is not the frequency (a percentage of the total number of observations) but the count of the observation in a particlar interval. Could you please change it? maybe you can create an object like this {bins: ..., count:..., freq:...}
i.e in your code at line 74 in histc.js substitute
out.push({bins: y[k], freq: h[k]})
with
out.push({bins: y[k], count: h[k], freq: h[k]/a.length})

Thanks