Needlessly Promiscuous, Modularize!
Miss any of our Open RFC calls?Watch the recordings here! »

just-skewness

1.0.2 • Public • Published

just-skewness

Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

import skewness from "just-skewness";
 
// Using Pearson's second skewness coefficient
skewness(3, 2, 1); // 0
skewness([1, 2, 3, 2, 4, 1]); // 0.4276994613841504
skewness(1, 2, 3, 4, 5, -6); // -0.762000762001143
skewness([1, 2, 3, 4, 9]); // 0.7705935588815224
skewness([4]); // throws
skewness(["3", 2]); // throws
skewness(NaN, NaN); // throws
skewness(); // throws

Install

npm i just-skewness

DownloadsWeekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.3 kB

Total Files

4

Last publish

Collaborators

  • avatar