JavaScript Data Utility Library: Datalib

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.