math-php icon indicating copy to clipboard operation
math-php copied to clipboard

Discussion - Should we create a RegressionInterface?

Open Beakerboy opened this issue 9 years ago • 0 comments

Adding an interface to the parent Regression class would force all non-abstract children of Regression to implement certain methods in a particular way. For example, we will want to ensure that they all have an evaluate() and calculate() method. A non-parametric algorithm like LOESS would not have a defined equation, or parameters. If they (getEquation() or getParameters()) were part of the Interface, the parent would have to implement them and return some sort of error.

Beakerboy avatar Jul 26 '16 12:07 Beakerboy