UNPKG

data-forge

Version:

JavaScript data transformation and analysis toolkit inspired by Pandas and LINQ.

13 lines (12 loc) 574 B
import { ISeries } from '../series'; /** * Compares to values and returns true if they are equivalent. */ export declare type ComparerFn<ValueT> = (a: ValueT, b: ValueT) => boolean; export declare class SeriesVariableWindowIterator<IndexT, ValueT> implements Iterator<ISeries<IndexT, ValueT>> { iterator: Iterator<[IndexT, ValueT]>; nextValue: IteratorResult<[IndexT, ValueT]>; comparer: ComparerFn<ValueT>; constructor(iterable: Iterable<[IndexT, ValueT]>, comparer: ComparerFn<ValueT>); next(): IteratorResult<ISeries<IndexT, ValueT>>; }