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 Type
    Method
    Description
    void
    Computes the statistic error of the model to the data points.
    double
    Returns the computed statistical error.
    void
    This is called once to provide access to internal data structures of the owner.
    void
    Prunes points based on the error and the computed statistics.
  • Method Details

    • init

      void init(DistanceFromModel<Model,Point> modelDistance, ArrayDeque<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 model
      allPoints - 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.