• Calculates a regression model for an array of data.

    Parameters

    • data: number[][]

      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 = 2

      The degree of the leading coefficient of the polynomial regression model

    Returns ChalkboardFunction

Generated using TypeDoc