Class PROMedSRobustEstimator.PROMedSInliersData

java.lang.Object
com.irurueta.numerical.robust.InliersData
com.irurueta.numerical.robust.PROMedSRobustEstimator.PROMedSInliersData
Enclosing class:
PROMedSRobustEstimator<T>

public static class PROMedSRobustEstimator.PROMedSInliersData extends InliersData
Contains data related to inliers estimated in one iteration.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private double
    Best median of error found so far taking into account all provided samples.
    private double
    Estimated threshold to determine whether samples are inliers or not.
    private BitSet
    Inliers considering LMedS model.
    private BitSet
    Inliers considering MSAC model.
    private boolean
    Indicates whether LMedS or MSAC inlier model is enabled.
    private double
    Median of error found on current iteration among all provided samples.
    private boolean
    Indicates whether median residual computed in current iteration has improved respect to previous iterations.
    private double
    Standard deviation of error among all provided samples respect to currently estimated result.

    Fields inherited from class com.irurueta.numerical.robust.InliersData

    numInliers, residuals
  • Constructor Summary

    Constructors
    Constructor
    Description
    PROMedSInliersData(int totalSamples)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a copy of inlier data.
    (package private) double
    Returns best median of error found so far taking into account all provided samples.
    double
    Returns estimated threshold to determine whether samples are inliers or not.
    Returns efficient array indicating which samples are considered inliers and which ones aren't.
    (package private) BitSet
    Returns inliers considering LMedS model.
    (package private) BitSet
    Returns inliers considering MSAC model.
    (package private) double
    Returns standard deviation of error among all provided samples respect to currently estimated result.
    (package private) boolean
    Returns boolean indicating whether LMedS or MSAC inlier model is enabled.
    (package private) boolean
    Returns boolean indicating whether median residual computed in current iteration has improved respect to previous iterations.
    protected void
    update(double bestMedianResidual, double standardDeviation, boolean lmedsInlierModelEnabled, double[] residuals, int numInliers, double medianResidual, double estimatedThreshold, boolean medianResidualImproved)
    Updates data contained in this instance.

    Methods inherited from class com.irurueta.numerical.robust.InliersData

    getNumInliers, getResiduals

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • bestMedianResidual

      private double bestMedianResidual
      Best median of error found so far taking into account all provided samples.
    • standardDeviation

      private double standardDeviation
      Standard deviation of error among all provided samples respect to currently estimated result.
    • inliersLmeds

      private BitSet inliersLmeds
      Inliers considering LMedS model.
    • inliersMsac

      private BitSet inliersMsac
      Inliers considering MSAC model.
    • lmedsInlierModelEnabled

      private boolean lmedsInlierModelEnabled
      Indicates whether LMedS or MSAC inlier model is enabled.
    • medianResidual

      private double medianResidual
      Median of error found on current iteration among all provided samples.
    • estimatedThreshold

      private double estimatedThreshold
      Estimated threshold to determine whether samples are inliers or not.
    • medianResidualImproved

      private boolean medianResidualImproved
      Indicates whether median residual computed in current iteration has improved respect to previous iterations.
  • Constructor Details

    • PROMedSInliersData

      PROMedSInliersData(int totalSamples)
      Constructor.
      Parameters:
      totalSamples - total number of samples.
  • Method Details

    • getInliers

      public BitSet getInliers()
      Returns efficient array indicating which samples are considered inliers and which ones aren't.
      Specified by:
      getInliers in class InliersData
      Returns:
      array indicating which samples are considered inliers and which ones aren't.
    • createCopy

      Creates a copy of inlier data.
      Returns:
      copy of inlier data.
    • getBestMedianResidual

      double getBestMedianResidual()
      Returns best median of error found so far taking into account all provided samples.
      Returns:
      best median of error found so far taking into account all provided samples.
    • getStandardDeviation

      double getStandardDeviation()
      Returns standard deviation of error among all provided samples respect to currently estimated result.
      Returns:
      standard deviation of error among all provided samples respect to currently estimated result.
    • getInliersLMedS

      BitSet getInliersLMedS()
      Returns inliers considering LMedS model.
      Returns:
      inliers considering LMedS model.
    • getInliersMSAC

      BitSet getInliersMSAC()
      Returns inliers considering MSAC model.
      Returns:
      inliers considering MSAC model.
    • isLMedSInlierModelEnabled

      boolean isLMedSInlierModelEnabled()
      Returns boolean indicating whether LMedS or MSAC inlier model is enabled. If true, estimated threshold was used to determine inliers, if false only median of residuals was used.
      Returns:
      true if LMedS model is used, false if MSAC model is used.
    • getEstimatedThreshold

      public double getEstimatedThreshold()
      Returns estimated threshold to determine whether samples are inliers or not.
      Returns:
      estimated threshold to determine whether samples are inliers or not.
    • isMedianResidualImproved

      boolean isMedianResidualImproved()
      Returns boolean indicating whether median residual computed in current iteration has improved respect to previous iterations.
      Returns:
      true if median residual improved, false otherwise.
    • update

      protected void update(double bestMedianResidual, double standardDeviation, boolean lmedsInlierModelEnabled, double[] residuals, int numInliers, double medianResidual, double estimatedThreshold, boolean medianResidualImproved)
      Updates data contained in this instance.
      Parameters:
      bestMedianResidual - best median of error found so far taking into account all provided samples.
      standardDeviation - standard deviation of error among all provided samples respect to currently estimated result.
      lmedsInlierModelEnabled - indicates whether the LMedS or MSAC inlier model is used.
      residuals - residuals obtained for each sample of data.
      numInliers - number of inliers found on current iteration.
      medianResidual - median of error found on current iteration among all provided samples.
      estimatedThreshold - estimated threshold to determine whether samples are inliers or not.
      medianResidualImproved - indicates whether median residual computed in current iteration has improved respect to previous iteration.