org.ddogleg.fitting.modelset.distance
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
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidcomputeStatistics()Computes the statistic error of the model to the data points.doublegetErrorMetric()Returns the computed statistical error.voidinit(DistanceFromModel<Model,Point> modelDistance, java.util.LinkedList<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 Detail
-
init
void init(DistanceFromModel<Model,Point> modelDistance, java.util.LinkedList<PointIndex<Point>> allPoints)
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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG