Package georegression.fitting.sphere
Class FitSphereToPoints_F64
java.lang.Object
georegression.fitting.sphere.FitSphereToPoints_F64
- All Implemented Interfaces:
ModelFitter<Sphere3D_F64,Point3D_F64>
UnconstrainedLeastSquares fitting of 3D points to a sphere.-
Constructor Summary
ConstructorsConstructorDescriptionFitSphereToPoints_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
Modifier and TypeMethodDescriptionbooleanfitModel(List<Point3D_F64> dataSet, Sphere3D_F64 initial, Sphere3D_F64 found) double
-
Constructor Details
-
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 Details
-
fitModel
- Specified by:
fitModelin interfaceModelFitter<Sphere3D_F64,Point3D_F64>
-
getFitScore
public double getFitScore()- Specified by:
getFitScorein interfaceModelFitter<Sphere3D_F64,Point3D_F64>
-