1 | import { Base } from './base';
|
2 | import { Domain, ThresholdOptions, Range } from '../types';
|
3 |
|
4 |
|
5 |
|
6 | export declare class Threshold<O extends ThresholdOptions = ThresholdOptions> extends Base<O> {
|
7 |
|
8 | protected n: number;
|
9 | protected thresholds: number[];
|
10 | protected getDefaultOptions(): O;
|
11 | constructor(options?: ThresholdOptions);
|
12 | /**
|
13 | * 二分查找到输入值在哪一段,返回对应的值域中的值
|
14 | */
|
15 | map(x: Domain<ThresholdOptions>): any;
|
16 | /**
|
17 | * 在值域中找到对应的值,并返回在定义域中属于哪一段
|
18 | */
|
19 | invert(y: Range<ThresholdOptions>): number[];
|
20 | clone(): Threshold<O>;
|
21 | protected rescale(): void;
|
22 | }
|