Package edu.cmu.tetrad.search.test
Interface IndTestGin.Regressor
- All Known Implementing Classes:
- IndTestGin.OlsRidge
- Enclosing class:
- IndTestGin
public static interface IndTestGin.Regressor
How we compute residuals.
- 
Method Summary
- 
Method Details- 
residualsdouble[] 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.
 
- 
nameString name()Returns the name of the regressor.- Returns:
- the name representing this regressor.
 
 
-