/** * Calculate the floating average of the entries in a moving window. * The width of the window can be defined while creating an instance of this class. * All values to inspect are numbers. * @class FloatingAverage */ export declare class FloatingAverage { private entries; private widthOfWindow; private currentAverage; /** * Creates an instance of FloatingAverage. * @param entriesInWindow - number of entries in window * @param initialAverage - initial value for average (if no entries received) */ constructor(entriesInWindow: number, initialAverage: number); /** * Add new value to the window and remove oldest value if window * has reached maximum number of values. * @param value - new value to add */ addEntry(value: number): void; /** * Get average of entries in window. * @returns average of values in window */ get average(): number; }