@liquality/fee-suggestions
Version:
JavaScript library that suggest fees on Ethereum after EIP-1559 using historical data using ethers.js
24 lines (23 loc) • 844 B
TypeScript
/**
* Computes a quantile for a numeric array.
* @param arr
* @param prob
* @param sorted
* @returns
*/
export declare function quantile(arr: Array<number>, prob: number, sorted?: boolean): number;
/**
*
* The IQR (Interquartile Range) describes the middle 50% of values when ordered from lowest to highest.
* To find the interquartile range (IQR), first find the median (middle value) of the lower and upper half of the data.
* These values are quartile 1 (Q1) and quartile 3 (Q3). The IQR is the difference between Q3 and Q1.
* ----------------------------------
* | |
* | 25% 25% 25% 25% |
* | Q1 Q2 Q3 |
* ----------------------------------
* Median
* @param arr
* @returns
*/
export declare function iqr(arr: Array<number>): number[];