/** * @author Samuel .V Sylvester Sr. * This class was originally created in November 2017 to help with developing * a machine learning application for three.js rectarea light data compression * and other applications. */ /** * A typed array with additional utility methods. */ export declare class SuperArray extends Array { readonly _isSuperArray = true; /** * Creates a new SuperArray instance. * @param {...t[]} array Elements to initialize the array. */ constructor(...array: t[]); /** * Returns a new array with the absolute values of the old array. * @returns {SuperArray} */ abs(): number[]; /** * Returns the average value of the elements in the array. * @returns {number} */ avg(): number; /** * Returns the first element of the array. * @returns {t} */ first(): t; /** * Returns the element at the indexes location, clamped to array bounds. * @param {number} index The desired index. * @returns {t} */ getClamped(index: any): t; /** * Returns the index of the maximum value in the array. * @returns {number} */ indexOfMax(): number; /** * Returns the last element in the array. * @returns {t} */ last: () => t; /** * Returns the maximum value of the elements in the array. * @returns {number} */ max: () => number; /** * Returns the minimum value of the elements in the array. * @returns {number} */ min: () => number; normalize(): number[]; /** * Shifts the array by a given amount, optionally scaling and adding another array. * @param {number} shift Number of positions to shift. * @param {number} [multiply] Scaling factor applied after shifting. * @param {SuperArray|number[]} [addArray] Array to add element-wise after shifting. * @returns {SuperArray} */ shiftArrayMAD(shift: any, multiply: any, addArray: any): any[]; /** * Returns the sum of the elements in the array. * @returns {number} */ sum: () => number; toFixed(a: any): number[]; /** * Returns an array based on the original with only unique values. */ unique(): SuperArray; } //# sourceMappingURL=SuperArray.d.ts.map