scichart
Version:
Fast WebGL JavaScript Charting Library and Framework
33 lines (32 loc) • 1.03 kB
TypeScript
import { BaseDataSeries } from "../BaseDataSeries";
import { IXyFilterOptions, XyFilterBase } from "./XyFilterBase";
/**
* An XyDataSeries that represents the linear trendline (or linear regression) of the original series
*/
export declare class XyLinearTrendFilter extends XyFilterBase {
private slopeProperty;
private interceptProperty;
private correlationProperty;
constructor(originalSeries: BaseDataSeries, options?: IXyFilterOptions);
/**
* Gets the slope of the trendline
*/
get slope(): number;
/**
* Gets the y-intercept of the trendline
*/
get intercept(): number;
/**
* Gets the correlation coefficient of the trendline
*/
get correlation(): number;
toJSON(excludeData?: boolean): {
options: IXyFilterOptions & {
slope?: number;
intercept?: number;
filter?: any;
};
type: import("../IDataSeries").EDataSeriesType;
};
protected filterAll(): void;
}