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