@antv/t8
Version:
T8 is a text visualization solution for unstructured data within the AntV technology stack, and it is a declarative T8 markdown syntax that can be used to describe the content of data interpretation reports.
14 lines • 380 B
TypeScript
export interface LinearRegressionResult {
k: number;
b: number;
}
/**
* use least square method to fit a line to the points
* @param points points to fit
* @returns {k, b} the slope and intercept of the line
*/
export declare function linearRegression(points: {
x: number;
y: number;
}[]): LinearRegressionResult;
//# sourceMappingURL=linearRegression.d.ts.map