@technobuddha/library
Version:
A large library of useful functions
12 lines (11 loc) • 440 B
TypeScript
/**
* Returns the unbiased sample variance of the arguments. For a definition,
* see http://en.wikipedia.org/wiki/Variance
*
* @param datapoints Number samples to analyze.
* @return The unbiased sample variance of the arguments (0 if fewer
* than two samples were provided, or {@code NaN} if any of the samples is
* not a valid number).
*/
export declare function variance(...datapoints: number[]): number;
export default variance;