Class FitResult
Object
FitResult
Represents the result of fitting an ellipsoid to a set of points.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyFitResultToMark
(Ellipsoid mark, Dimensions sceneDim, double shell) Applies the fit result to anEllipsoid
mark.void
applyRadiiSubtractScale
(double subtract, double scale) Applies a subtraction and scaling to the radii of the ellipsoid.protected boolean
boolean
The center point of the fitted ellipsoid.double
The radius of the ellipsoid along the X-axis.double
The radius of the ellipsoid along the Y-axis.double
The radius of the ellipsoid along the Z-axis.cern.colt.matrix.DoubleMatrix2D
The rotation matrix, which must be considered immutable to be used here.int
hashCode()
void
imposeMinimumRadius
(double minRadius) Imposes a minimum radius on all axes of the ellipsoid.void
setCenterPoint
(Point3d centerPoint) The center point of the fitted ellipsoid.void
setRadiusX
(double radiusX) The radius of the ellipsoid along the X-axis.void
setRadiusY
(double radiusY) The radius of the ellipsoid along the Y-axis.void
setRadiusZ
(double radiusZ) The radius of the ellipsoid along the Z-axis.void
setRotMatrix
(cern.colt.matrix.DoubleMatrix2D rotMatrix) The rotation matrix, which must be considered immutable to be used here.toString()
-
Constructor Details
-
FitResult
public FitResult()
-
-
Method Details
-
applyFitResultToMark
public void applyFitResultToMark(Ellipsoid mark, Dimensions sceneDim, double shell) throws PointsFitterException Applies the fit result to anEllipsoid
mark.- Parameters:
mark
- theEllipsoid
to updatesceneDim
- the dimensions of the sceneshell
- the shell thickness- Throws:
PointsFitterException
- if the ellipsoid is outside the scene
-
applyRadiiSubtractScale
public void applyRadiiSubtractScale(double subtract, double scale) Applies a subtraction and scaling to the radii of the ellipsoid.- Parameters:
subtract
- the value to subtract from each radiusscale
- the scale factor to apply after subtraction
-
imposeMinimumRadius
public void imposeMinimumRadius(double minRadius) Imposes a minimum radius on all axes of the ellipsoid.- Parameters:
minRadius
- the minimum allowed radius
-
getCenterPoint
The center point of the fitted ellipsoid. -
getRadiusX
public double getRadiusX()The radius of the ellipsoid along the X-axis. -
getRadiusY
public double getRadiusY()The radius of the ellipsoid along the Y-axis. -
getRadiusZ
public double getRadiusZ()The radius of the ellipsoid along the Z-axis. -
getRotMatrix
public cern.colt.matrix.DoubleMatrix2D getRotMatrix()The rotation matrix, which must be considered immutable to be used here. -
setCenterPoint
The center point of the fitted ellipsoid. -
setRadiusX
public void setRadiusX(double radiusX) The radius of the ellipsoid along the X-axis. -
setRadiusY
public void setRadiusY(double radiusY) The radius of the ellipsoid along the Y-axis. -
setRadiusZ
public void setRadiusZ(double radiusZ) The radius of the ellipsoid along the Z-axis. -
setRotMatrix
public void setRotMatrix(cern.colt.matrix.DoubleMatrix2D rotMatrix) The rotation matrix, which must be considered immutable to be used here. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-