Class CalculateHistogram
- All Implemented Interfaces:
ResettableCalculation
Calculates a
Histogram from a specific channel in a FeatureInputStack.
This class extends CalculationPart to compute a histogram for a given energy channel
in the input stack.
-
Constructor Summary
ConstructorsConstructorDescriptionCalculateHistogram(int energyIndex) Creates a newCalculateHistograminstance. -
Method Summary
Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPart
getOrCalculate, hasCachedResult, invalidate
-
Constructor Details
-
CalculateHistogram
public CalculateHistogram(int energyIndex) Creates a newCalculateHistograminstance.- Parameters:
energyIndex- The index of the energy channel to calculate the histogram from.
-
-
Method Details
-
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<Histogram,FeatureInputStack> - 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<Histogram,FeatureInputStack>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classCalculationPart<Histogram,FeatureInputStack>
-