georegression.fitting.sphere
Class FitSphereToPoints_F64
- java.lang.Object
-
- georegression.fitting.sphere.FitSphereToPoints_F64
-
- All Implemented Interfaces:
- ModelFitter<Sphere3D_F64,Point3D_F64>
public class FitSphereToPoints_F64 extends java.lang.Object implements ModelFitter<Sphere3D_F64,Point3D_F64>
UnconstrainedLeastSquaresfitting of 3D points to a sphere.
-
-
Constructor Summary
Constructors Constructor and Description FitSphereToPoints_F64(int maxIterations)Simplified constructor.FitSphereToPoints_F64(UnconstrainedLeastSquares optimizer, int maxIterations, double ftol, double gtol)Constructor which provides access to all tuning parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanfitModel(java.util.List<Point3D_F64> dataSet, Sphere3D_F64 initial, Sphere3D_F64 found)Fits a model to a set of points.
-
-
-
Constructor Detail
-
FitSphereToPoints_F64
public FitSphereToPoints_F64(UnconstrainedLeastSquares optimizer, int maxIterations, double ftol, double gtol)
Constructor which provides access to all tuning parameters- Parameters:
optimizer- Optimization algorithmmaxIterations- Maximum number of iterations that the optimizer can perform. Try 100ftol- Convergence tolerance. SeeUnconstrainedLeastSquares.gtol- Convergence tolerance. SeeUnconstrainedLeastSquares.
-
FitSphereToPoints_F64
public FitSphereToPoints_F64(int maxIterations)
Simplified constructor. Only process access to the maximum number of iterations.- Parameters:
maxIterations- Maximum number of iterations. Try 100
-
-
Method Detail
-
fitModel
public boolean fitModel(java.util.List<Point3D_F64> dataSet, Sphere3D_F64 initial, Sphere3D_F64 found)
Description copied from interface:ModelFitterFits a model to a set of points. Note that initial and found can be the same instance.- Specified by:
fitModelin interfaceModelFitter<Sphere3D_F64,Point3D_F64>- Parameters:
dataSet- Set of points the model is being fit to.initial- Initial hypothesisfound- The found model. Can be the same instance as initial.- Returns:
- true if a model was found and false if one was not.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG