Class CalculateEllipsoidLeastSquares
- All Implemented Interfaces:
ResettableCalculation
public class CalculateEllipsoidLeastSquares
extends CalculationPart<Ellipsoid,FeatureInputSingleObject>
Calculates the best-fit
Ellipsoid for an object using linear least squares.-
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanprotected Ellipsoidexecute(FeatureInputSingleObject input) This performs the actual calculation when needed.inthashCode()static Ellipsoidof(FeatureCalculationInput<FeatureInputSingleObject> input, boolean suppressZCovariance) Calculates anEllipsoidfor the given input.Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPart
getOrCalculate, hasCachedResult, invalidate
-
Method Details
-
of
public static Ellipsoid of(FeatureCalculationInput<FeatureInputSingleObject> input, boolean suppressZCovariance) throws FeatureCalculationException Calculates anEllipsoidfor the given input.- Parameters:
input- the feature calculation inputsuppressZCovariance- whether to suppress covariance in the Z direction- Returns:
- the calculated
Ellipsoid - Throws:
FeatureCalculationException- if the calculation fails
-
execute
Description copied from class:CalculationPartThis performs the actual calculation when needed. It should only be called once, untilCalculationPart.invalidate()is called.- Specified by:
executein classCalculationPart<Ellipsoid,FeatureInputSingleObject> - Parameters:
input- the input to the calculation.- Returns:
- the result of the calculation.
- Throws:
FeatureCalculationException- if the calculation cannot be successfully completed.
-
equals
- Specified by:
equalsin classCalculationPart<Ellipsoid,FeatureInputSingleObject>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classCalculationPart<Ellipsoid,FeatureInputSingleObject>
-