%PDF- %PDF-
| Direktori : /home2/rezakur1/ai.rezakurnia.com/zh-router-frontend/node_modules/es-toolkit/dist/math/ |
| Current File : //home2/rezakur1/ai.rezakurnia.com/zh-router-frontend/node_modules/es-toolkit/dist/math/mean.d.ts |
/** * Calculates the average of an array of numbers. * * If the array is empty, this function returns `NaN`. * * @param nums - An array of numbers to calculate the average. * @returns The average of all the numbers in the array. * * @example * const numbers = [1, 2, 3, 4, 5]; * const result = mean(numbers); * // result will be 3 */ export declare function mean(nums: readonly number[]): number;