HISTC
One-dimensional histogram calculation.
Examples
var histc =edges minEdge maxEdge binWidth numEdgesdata = 1000counts;// Parameters:minEdge = -0025;maxEdge = -1025;binWidth = 005;numEdges = Math + 1;// Create a 1d edge array...edges = numEdges ;for var i = 0; i < numEdges; i++edges i = minEdge + i*binWidth;// Simulate some data:for var j = 0; j < 1000; j++data j = Math;// Compute the histogram:counts = ;
Tests
Unit tests use the Mocha test framework with Chai assertions.
Assuming you have installed Mocha, execute the following command in the top-level application directory to run the tests:
$ mocha
All new feature development should have corresponding unit tests to validate correct functionality.
License
Copyright
Copyright © 2014. Athan Reines.