1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        DatalibJavaScript 數(shù)據(jù)實(shí)用程序庫(kù)

        聯(lián)合創(chuàng)作 · 2023-09-22 07:21

        Datalib 是一個(gè) JavaScript 數(shù)據(jù)實(shí)用程序庫(kù)。它提供用于數(shù)據(jù)加載、 類(lèi)型推理、 常見(jiàn)統(tǒng)計(jì)和字符串的模板。包括:

        • 加載并解析數(shù)據(jù)文件(JSON, TopoJSON, CSV, TSV).

        • 統(tǒng)計(jì)摘要(均值、偏差、中位數(shù)、相關(guān)測(cè)量等).

        • 數(shù)據(jù)驅(qū)動(dòng)字符串模版,包括一組篩選器.

        • 用于處理 JavaScript 對(duì)象和數(shù)組的實(shí)用程序.

        代碼示例:

        // 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
        );
        瀏覽 21
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        評(píng)論
        圖片
        表情
        推薦
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            国产免费一二三区 | 丝袜美腿美女被狂躁长网站软件 | tickling欧美裸乳丨vk | 逼逼综合| 国产精品亚洲TV 3区 | 国产精品久久久久久久久久懂色 | 欧美xxx视频 | 中字无码 | 天天干天天操天天射黄色电影 | 疯狂漂亮的性感美女操逼特级片 |