flow-covariance
Reduce transform stream which computes the covariance of a numeric data stream.
Installation
$ npm install flow-covariance
Examples
var eventStream =cStream = ;// Create some data... (negatively corrrelated)var data = 1000 value;for var i = 0; i < datalength; i++value = Math * 50;data i ='y1': 50 + value'y2': 50 - value// Create a readable stream:var readStream = eventStream;// Create a new stream:var stream =;// Create a pipeline:readStream;
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.