Package org.drip.regression.core
Class UnitRegressionExecutor
java.lang.Object
org.drip.regression.core.UnitRegressionExecutor
- All Implemented Interfaces:
UnitRegressor
- Direct Known Subclasses:
BasisSplineRegressor,LagrangePolynomialStretchRegressor,LocalControlBasisSplineRegressor
public abstract class UnitRegressionExecutor extends java.lang.Object implements UnitRegressor
UnitRegressionExecutor implements the UnitRegressor, and splits the regression execution into pre-,
execute, and post-regression. It provides default implementations for pre-regression and post-regression.
Most typical regressors only need to over-ride the execRegression method.
- Module = Computational Core Module
- Library = Computation Support
- Project = Regression Engine Core and the Unit Regressors
- Package = Regression Engine Core - Unit Regressors
- Author:
- Lakshmi Krishnamurthy
-
Method Summary
Modifier and Type Method Description abstract booleanexecRegression()Execute the regression call within this functionjava.lang.StringgetName()Regressor NamebooleanpostRegression(RegressionRunDetail rnvd)Clean-up of the objects set-up for the regressionbooleanpreRegression()One-time initialization to set up the objects needed for the regressionRegressionRunOutputregress()This method performs the feature by feature regression for the given object.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
preRegression
public boolean preRegression()One-time initialization to set up the objects needed for the regression- Returns:
- TRUE - Initialization successful
-
execRegression
public abstract boolean execRegression()Execute the regression call within this function- Returns:
- The result of the regression
-
postRegression
Clean-up of the objects set-up for the regression- Parameters:
rnvd- Regression Run Detail object to capture the regression details- Returns:
- TRUE - Clean-up successful
-
regress
Description copied from interface:UnitRegressorThis method performs the feature by feature regression for the given object.- Specified by:
regressin interfaceUnitRegressor- Returns:
- The calculated Regression Output Object.
-
getName
public java.lang.String getName()Description copied from interface:UnitRegressorRegressor Name- Specified by:
getNamein interfaceUnitRegressor- Returns:
- Name of the regressor
-