UNPKG

@bazilio-san/af-stream

Version:
21 lines 1.24 kB
import { TSlot } from '../interfaces'; export declare const eq: (a: number, b: number, SIGMA: number) => boolean; export declare const gt: (a: number, b: number, SIGMA: number) => boolean; export declare const lt: (a: number, b: number, SIGMA: number) => boolean; export declare const gte: (a: number, b: number, SIGMA: number) => boolean; export declare const lte: (a: number, b: number, SIGMA: number) => boolean; export declare const findSlotFloatLEFT: (arr: number[], x: number, SIGMA: number) => TSlot; export declare const findSlotFloatRIGHT: (arr: number[], x: number, SIGMA: number) => TSlot; export declare const findSlotFloatBINARY: (arr: number[], x: number, SIGMA: number) => TSlot; /** * Searches for a place for a float number (x) in an array of float numbers (arr) sorted in ascending order. * Returns an array of 3 indices: [ <index of nearest smaller number | null>, <index of number equal to desired | null>, <index of nearest larger number | null> ] Numbers are compared using SIGMA: if the numbers differ by less than SIGMA, then they are considered equal. */ export declare const findSlotFloat: (arr: number[], x: number, SIGMA: number) => TSlot; //# sourceMappingURL=find-slot-float.d.ts.map