type Vec = readonly number[] | Float64Array; /** Clamp a number — or each element of an array — to `[lo, hi]`. */ export declare function clamp(x: number, lo: number, hi: number): number; export declare function clamp(x: readonly number[], lo: number, hi: number): number[]; /** Logistic sigmoid `1/(1+e^-x)`, computed in the numerically stable branch. */ export declare function sigmoid(x: number): number; export declare function sigmoid(x: readonly number[]): number[]; /** * Log-sum-exp: `log(Σ exp(xᵢ))`, shifted by the max for numerical stability. * Reuses `max`/`sum`. The backbone of log-probability arithmetic. */ export declare function logsumexp(x: Vec): number; /** Softmax: `exp(xᵢ − max) / Σ exp(x − max)`. Returns a probability vector. */ export declare function softmax(x: Vec): number[]; /** Cumulative product (running ∏). Output has the same length as the input. */ export declare function cumprod(x: Vec): number[]; /** Cumulative maximum (running max). */ export declare function cummax(x: Vec): number[]; /** Cumulative minimum (running min). */ export declare function cummin(x: Vec): number[]; /** * Cumulative trapezoidal integral of samples `y` (optionally over abscissae * `x`, else unit spacing or a scalar `dx`). Output has the same length as `y` * with a leading 0 (the MATLAB `cumtrapz` convention). */ export declare function cumtrapz(y: Vec, x?: Vec | number): number[]; export {}; //# sourceMappingURL=numeric-extra.d.ts.map