org.ddogleg.fitting.modelset
Class GenericModelMatcherTests
- java.lang.Object
-
- org.ddogleg.fitting.modelset.GenericModelMatcherTests
-
- Direct Known Subclasses:
- GenericModelMatcherMultiTests, TestLeastMedianOfSquares, TestRansac, TestStatisticalDistanceModelMatcher
public abstract class GenericModelMatcherTests extends java.lang.ObjectA series of tests are provided that test to see the provided model set algorithm has the expected behavior. This includes removing outliers and estimating the model parameters. The test cases tend to be fairly easy so that they will work on all model set algorithms.
-
-
Constructor Summary
Constructors Constructor and Description GenericModelMatcherTests()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description voidcheckMatchSetToInputIndex()Make sure the function getInputIndex() returns the original indexabstract ModelMatcher<double[],java.lang.Double>createModelMatcher(ModelManager<double[]> manager, DistanceFromModel<double[],java.lang.Double> distance, ModelGenerator<double[],java.lang.Double> generator, ModelFitter<double[],java.lang.Double> fitter, int minPoints, double fitThreshold)voidperformSimpleModelFit()Sees if it can correctly select a model set and determine the best fit parameters for a simple test case.voidrunMultipleTimes()Multiple data sets are processed in an attempt to see if it is properly reinitializing itself and returns the correct solutions.
-
-
-
Method Detail
-
performSimpleModelFit
public void performSimpleModelFit()
Sees if it can correctly select a model set and determine the best fit parameters for a simple test case.
-
runMultipleTimes
public void runMultipleTimes()
Multiple data sets are processed in an attempt to see if it is properly reinitializing itself and returns the correct solutions.
-
checkMatchSetToInputIndex
public void checkMatchSetToInputIndex()
Make sure the function getInputIndex() returns the original index
-
createModelMatcher
public abstract ModelMatcher<double[],java.lang.Double> createModelMatcher(ModelManager<double[]> manager, DistanceFromModel<double[],java.lang.Double> distance, ModelGenerator<double[],java.lang.Double> generator, ModelFitter<double[],java.lang.Double> fitter, int minPoints, double fitThreshold)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG