Datalib is a JavaScript data utility library.
quickly use romanysoft LAB
Technology to implement HTML development Mac OS apps and sell them to the Apple App Store.
"HTML development mac OS App video tutorial"
- Tudou Sync Update: http://www.tudou.com/plcover/VHNh6ZopQ4E/
- Baidu Network disk synchronization: Http://pan.baidu.com/s/1jG1Q58M
- Share [Chinese documentary] The Internet age Http://pan.baidu.com/s/1qWkJfcS
Official QQ Group: ( apply to join, say I recommend it
)
- App Practice 434558944
- App Learning Exchange 452180823
It provides templates for data loading, type inference, common statistics, and strings. Including:
Load and parse data files (JSON, Topojson, CSV, TSV).
Statistical summary (mean, deviation, median, relative measurement, etc.).
A data-driven string template that includes a set of filters.
Utilities for working with JavaScript objects and arrays.
code example:
?
123456789Ten One A - - the - - - + |
// Load datalib. var dl = require( ‘datalib‘ ); // Load and parse a CSV file. Datalib does type inference for you. // The result is an array of JavaScript objects with named values. // Parsed dates are stored as UNIX timestamp values. var data = dl.csv( ‘http://uwdata.github.io/datalib/data/stocks.csv‘ ); // Show summary statistics for each column of the data table. console.log(dl.summary(data).toString()); // Compute correlation measures between price and date. var price = dl.accessor( ‘price‘ ); var date = dl.accessor( ‘date‘ ); console.log( dl.cor(data, price, date), // Pearson product-moment correlation dl.cor.rank(data, price, date), // Spearman rank correlation dl.cor.dist(data, price, date) // Distance correlation );
|
JavaScript Data Utility Library: Datalib