georegression.fitting.sphere
Class FitSphereToPoints_F32
- java.lang.Object
-
- georegression.fitting.sphere.FitSphereToPoints_F32
-
- All Implemented Interfaces:
- ModelFitter<Sphere3D_F32,Point3D_F32>
public class FitSphereToPoints_F32 extends java.lang.Object implements ModelFitter<Sphere3D_F32,Point3D_F32>
UnconstrainedLeastSquaresfitting of 3D points to a sphere.
-
-
Constructor Summary
Constructors Constructor and Description FitSphereToPoints_F32(int maxIterations)Simplified constructor.FitSphereToPoints_F32(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_F32> dataSet, Sphere3D_F32 initial, Sphere3D_F32 found)Fits a model to a set of points.
-
-
-
Constructor Detail
-
FitSphereToPoints_F32
public FitSphereToPoints_F32(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_F32
public FitSphereToPoints_F32(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_F32> dataSet, Sphere3D_F32 initial, Sphere3D_F32 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_F32,Point3D_F32>- 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