Interface StatisticalFit<Model,Point>
- All Known Implementing Classes:
FitByMeanStatistics,FitByMedianStatistics
public interface StatisticalFit<Model,Point>
Interface for computing error metrics and pruning features.
-
Method Summary
Modifier and TypeMethodDescriptionvoidComputes the statistic error of the model to the data points.doubleReturns the computed statistical error.voidinit(DistanceFromModel<Model, Point> modelDistance, ArrayDeque<PointIndex<Point>> allPoints) This is called once to provide access to internal data structures of the owner.voidprune()Prunes points based on the error and the computed statistics.
-
Method Details
-
init
This is called once to provide access to internal data structures of the owner.- Parameters:
modelDistance- Computes the error between a point and the modelallPoints- Contains all the points which are currently considered part of the model.
-
getErrorMetric
double getErrorMetric()Returns the computed statistical error.- Returns:
- The error.
-
computeStatistics
void computeStatistics()Computes the statistic error of the model to the data points. -
prune
void prune()Prunes points based on the error and the computed statistics.
-