Interface Summary<T>

Includes information about a best-fit for a curve.

interface Summary<T> {
    error: number;
    errorAvgAbs: number;
    f: ((x) => number);
    params: number[];
}

Type Parameters

Properties

error: number

This is the residual sum of squared errors.

errorAvgAbs: number

The average absolute error per data point, comparing the given dataset to the model output with the set of best-fit parameters.

f: ((x) => number)

The model with best-fit parameters applied.

Type declaration

    • (x): number
    • Parameters

      Returns number

params: number[]

Contains the set of best-fit parameters for the function f(x)