Class FitResult

Object
FitResult

public class FitResult extends Object
Represents the result of fitting an ellipsoid to a set of points.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyFitResultToMark(Ellipsoid mark, Dimensions sceneDim, double shell)
    Applies the fit result to an Ellipsoid mark.
    void
    applyRadiiSubtractScale(double subtract, double scale)
    Applies a subtraction and scaling to the radii of the ellipsoid.
    protected boolean
     
    boolean
     
    Point3d
    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
     
    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.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FitResult

      public FitResult()
  • Method Details

    • applyFitResultToMark

      public void applyFitResultToMark(Ellipsoid mark, Dimensions sceneDim, double shell) throws PointsFitterException
      Applies the fit result to an Ellipsoid mark.
      Parameters:
      mark - the Ellipsoid to update
      sceneDim - the dimensions of the scene
      shell - 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 radius
      scale - 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

      public Point3d 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

      public void setCenterPoint(Point3d centerPoint)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object