org.ddogleg.example
Class LineGenerator
- java.lang.Object
-
- org.ddogleg.example.LineGenerator
-
- All Implemented Interfaces:
- ModelGenerator<Line2D,Point2D>
public class LineGenerator extends java.lang.Object implements ModelGenerator<Line2D,Point2D>
Estimate the parameters of a line using two points
-
-
Constructor Summary
Constructors Constructor and Description LineGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleangenerate(java.util.List<Point2D> dataSet, Line2D output)Creates a list of hypotheses from the set of sample points.intgetMinimumPoints()The minimum number of points required to fit a data set
-
-
-
Method Detail
-
generate
public boolean generate(java.util.List<Point2D> dataSet, Line2D output)
Description copied from interface:ModelGeneratorCreates a list of hypotheses from the set of sample points.- Specified by:
generatein interfaceModelGenerator<Line2D,Point2D>- Parameters:
dataSet- Set of sample points. Typically the minimum number possible.output- Storage for generated model.- Returns:
- true if a model was generated, otherwise false is none were
-
getMinimumPoints
public int getMinimumPoints()
Description copied from interface:ModelGeneratorThe minimum number of points required to fit a data set- Specified by:
getMinimumPointsin interfaceModelGenerator<Line2D,Point2D>- Returns:
- Number of points.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG