Interface IndTestGin.Regressor

All Known Implementing Classes:
IndTestGin.OlsRidge
Enclosing class:
IndTestGin

public static interface IndTestGin.Regressor
How we compute residuals.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the regressor.
    double[]
    residuals(double[] target, double[][] predictors)
    Computes the residuals, which are the differences between the target values and the predicted values obtained using the given predictors.
  • Method Details

    • residuals

      double[] residuals(double[] target, double[][] predictors)
      Computes the residuals, which are the differences between the target values and the predicted values obtained using the given predictors.
      Parameters:
      target - an array of target values that represent the observations.
      predictors - a 2D array where each row represents a set of predictor variables for a corresponding observation.
      Returns:
      an array of residuals for each observation, calculated as the difference between the target value and the predicted value for that observation.
    • name

      String name()
      Returns the name of the regressor.
      Returns:
      the name representing this regressor.