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 TypeMethodDescriptionvoid
Computes the statistic error of the model to the data points.double
Returns the computed statistical error.void
init
(DistanceFromModel<Model, Point> modelDistance, ArrayDeque<PointIndex<Point>> allPoints) This is called once to provide access to internal data structures of the owner.void
prune()
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.
-