@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
21 lines • 649 B
TypeScript
export declare class TimeSeries {
private points;
private startTimeSec;
private maxPoints;
constructor(opts?: {
maxPoints?: number;
});
/** Add TimeSeries entry for value at current time */
addPoint(value: number, timeSec?: number): void;
/** Compute the slope of all registered points assuming linear regression */
computeLinearSpeed(): number;
/**
* Compute x point at which y = 0.
* From eq `y = b + m*x` then solve for `0 = b + m*x`
*/
computeY0Point(): number;
/** Remove all entries */
clear(): void;
numPoints(): number;
}
//# sourceMappingURL=timeSeries.d.ts.map