Package Exports
- grade-math
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (grade-math) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.