grade-math
v1.0.2
Published
A bundle of commonly used math functions for grading applications, including Standard Deviation, Normal Y, Mean, and Z-Score.
Downloads
13
Maintainers
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.