Miss any of our Open RFC calls?Watch the recordings here! »

grade-math

1.0.2 • Public • Published

grade-math

An npm package with some helpful math functions for calculating grade statistics.

Usage

import { standardDeviation, normalY, mean, zScore, generatePoints } from 'grade-math'

Functions

data in this context means an array of numbers.

Standard Deviation

standardDeviation(data)

Calculates the standard deviation of an array of numbers.

Normal Y

normalY(x, mean, stdDev)

Calculates a probability density function given a data point, mean, and standard deviation.

Mean

mean(data)

Calculates the mean of an array of numbers.

Z-Score

zScore(value, mean, stdDev)

Calulcates the standard score of a value given a mean and standard deviation.

Generate Points

generatePoints(stdDev, mean)

Returns an array of points which follow a bell curve using the standard deviation and mean.

Install

npm i grade-math

DownloadsWeekly Downloads

14

Version

1.0.2

License

MIT

Unpacked Size

3.86 kB

Total Files

4

Last publish

Collaborators

  • avatar