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 newCalculateHistogram
instance. -
Method Summary
Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPart
getOrCalculate, hasCachedResult, invalidate
-
Constructor Details
-
CalculateHistogram
public CalculateHistogram(int energyIndex) Creates a newCalculateHistogram
instance.- Parameters:
energyIndex
- The index of the energy channel to calculate the histogram from.
-
-
Method Details
-
execute
Description copied from class:CalculationPart
This performs the actual calculation when needed. It should only be called once, untilCalculationPart.invalidate()
is called.- Specified by:
execute
in 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:
equals
in classCalculationPart<Histogram,
FeatureInputStack>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCode
in classCalculationPart<Histogram,
FeatureInputStack>
-