Numbers
This file contains functions that are related to numbers.
sum
Calculates the sum of an array of numbers.
mean
Calculates the mean of an array of numbers.
average
Calculates the mean of an array of numbers.
margin
Calculates the margin based on a percentage.
addMargin
Adds the margin to the value.
subtractMargin
Subtracts the margin from the value.
addMarkup
Adds the markup to the value.
subtractMarkup
Calculates the markup based on a percentage.
median
Calculates the median of an array of numbers.
mode
Calculates the mode of an array of numbers.
min
Finds the minimum value in an array of numbers.
max
Finds the maximum value in an array of numbers.
minMax
Returns the minimum and maximum values in an array of numbers.
range
Returns the difference between two values, expressed as a positive number.
standardDeviation
Returns the standard deviation of an array of numbers.
skewness
Returns the measure of asymmetry of the probability distribution of an array of numbers. The skewness value can be positive, zero, negative, or undefined.