UNPKG

@mojir/lits

Version:

Lits is a pure functional programming language implemented in TypeScript

8 lines (7 loc) 319 B
/** * Calculate the percentile value from an array of numbers * @param data Array of numbers to calculate percentile from * @param percentile The percentile to calculate (0-100) * @returns The value at the specified percentile */ export declare function calcPercentile(data: number[], percentile: number): number;