UNPKG

math-helper-functions

Version:

Helper with misc. math functions such as sums, averages, max, min, etc

9 lines (8 loc) 272 B
/** * Gets the percentile of an array of values * * @param array Array to find percentile of * @param percentile Amount between 0 and 1 * @returns Percentile */ export declare function getPercentile(array: (number | null)[], percentile: number): number | undefined;