1 | import { Threshold } from './threshold';
|
2 | import { QuantizeOptions, Range } from '../types';
|
3 |
|
4 |
|
5 |
|
6 | export declare class Quantize extends Threshold<QuantizeOptions> {
|
7 | private thresholds;
|
8 | protected getDefaultOptions(): QuantizeOptions;
|
9 | constructor(options?: QuantizeOptions);
|
10 | protected getDomain(): number[];
|
11 | protected nice(): void;
|
12 | getTicks(): number[];
|
13 | protected getTickMethodOptions(): number[];
|
14 | protected rescale(): void;
|
15 | /**
|
16 | * 如果是在第一段后或者最后一段就把两端的值添加上
|
17 | */
|
18 | invert(y: Range<QuantizeOptions>): number[];
|
19 | getThresholds(): number[];
|
20 | clone(): Quantize;
|
21 | }
|