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