You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
800 B

4 months ago
import { Base } from './base';
import { Domain, ThresholdOptions, Range } from '../types';
/**
*
*/
export declare class Threshold<O extends ThresholdOptions = ThresholdOptions> extends Base<O> {
/** threshold 的数量 */
protected n: number;
protected thresholds: number[];
protected getDefaultOptions(): O;
constructor(options?: ThresholdOptions);
/**
*
*/
map(x: Domain<ThresholdOptions>): any;
/**
*
*/
invert(y: Range<ThresholdOptions>): number[];
clone(): Threshold<O>;
protected rescale(): void;
}