The data, an array of arrays that represent an ordered pair of 2D coordinates
Optional
type: "linear" | "polynomial" | "power" | "exponential" | "logarithmic" = "linear"The type of regression model, which can be "linear", "polynomial", "power", "exponential", or "logarithmic"
Optional
degree: number = 2The degree of the leading coefficient of the polynomial regression model
Generated using TypeDoc
Calculates a regression model for an array of data.