Class Ransac.TrialHelper

java.lang.Object
org.ddogleg.fitting.modelset.ransac.Ransac.TrialHelper
Enclosing class:
Ransac<Model,​Point>

protected class Ransac.TrialHelper
extends Object
  • Field Details

    • matchToInput

      protected int[] matchToInput
    • bestMatchToInput

      protected int[] bestMatchToInput
  • Constructor Details

    • TrialHelper

      protected TrialHelper()
  • Method Details

    • selectMatchSet

      protected boolean selectMatchSet​(List<Point> dataSet, int bestModelSize, double threshold, Model param)
      Looks for points in the data set which closely match the current best fit model in the optimizer.
      Parameters:
      dataSet - The points being considered
    • swapCandidateWithBest

      protected void swapCandidateWithBest()
      Turns the current candidates into the best ones.
    • reset

      public void reset()