Package georegression.fitting.sphere
Class FitSphereToPoints_F32
java.lang.Object
georegression.fitting.sphere.FitSphereToPoints_F32
- All Implemented Interfaces:
ModelFitter<Sphere3D_F32,Point3D_F32>
@Generated("georegression.fitting.sphere.FitSphereToPoints_F64")
public class FitSphereToPoints_F32
extends Object
implements ModelFitter<Sphere3D_F32,Point3D_F32>
UnconstrainedLeastSquares fitting of 3D points to a sphere.-
Constructor Summary
ConstructorsConstructorDescriptionFitSphereToPoints_F32(int maxIterations) Simplified constructor.FitSphereToPoints_F32(UnconstrainedLeastSquares optimizer, int maxIterations, float ftol, float gtol) Constructor which provides access to all tuning parameters -
Method Summary
Modifier and TypeMethodDescriptionbooleanfitModel(List<Point3D_F32> dataSet, Sphere3D_F32 initial, Sphere3D_F32 found) double
-
Constructor Details
-
FitSphereToPoints_F32
public FitSphereToPoints_F32(UnconstrainedLeastSquares optimizer, int maxIterations, float ftol, float 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 Details
-
fitModel
- Specified by:
fitModelin interfaceModelFitter<Sphere3D_F32,Point3D_F32>
-
getFitScore
public double getFitScore()- Specified by:
getFitScorein interfaceModelFitter<Sphere3D_F32,Point3D_F32>
-