Nostradamus Prophecy Machine

    @hugov/stats

    0.0.1 • Public • Published

    @hugov/stats

    average, standard deviation, variance, covariance and correlation of data sets

    ExampleLicense

    Example

    import stats from '@hugov/stats'
    const data = { a:[1,2,3], b:[0,1,2] },
          info = stats(data),
          ave_ = info.ave(),        // { a:2, b:1 }
          aveA = info.ave('a'),     // 2
          dev_ = info.dev(),        // { a:1, b:1 }
          devA = info.dev('a'),     // 1
          var_ = info.var(),        // { a:1, b:1 }
          varA = info.var('a'),     // 1
          cov_ = info.cov(),        // {a:{a:1, b:1}, b:{a:1, b:1}}
    	    covA = info.cov('a'),     // {a:1, b:1}
    	    cvBA = info.cov('b', 'a'),// 1
    	    cor_ = info.cor(),        // {a:{a:1, b:1}, b:{a:1, b:1}}
    	    corA = info.cor('a'),     // {a:1, b:1}
    	    crBA = info.cor('b', 'a') // 1

    License

    Released under the MIT License

    Install

    npm i @hugov/stats

    DownloadsWeekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    4.59 kB

    Total Files

    4

    Last publish

    Collaborators

    • hugov