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