Histogram-analyze
Histogram-analyze is a simple histogram analyzing tool working on Browser, Requirejs, Node.
How to use
Histogram-analyze have 3 features
- histogram1D
- circularHistogram1D
- histogram2D
constructor
5 ; // [0,0,0,0,0]5 1 ; // [1,1,1,1,1]3 3 1 ; // [ [1,1,1],// [1,1,1],// [1,1,1] ]
common
// make 0 below saturate * max
use like this
var histogram1D = HistogramAnalyzehistogram1D // = [{ l_end: 1, x: 4, r_end: 6, size: 36, rate: 0.72 }// { l_end: 7, x: 8, r_end: 9, size: 14, rate: 0.28 }] // = [{ l_end: 0, x: 4, r_end: 7, size: 42.446, rate: 0.791 }] // size is the sum from l_end to r_end// rate is size / total. // same on hist2D cirHist1D.