Class FeatureObjectCollection
- Direct Known Subclasses:
NumberObjects
A base class for a feature that accepts a
ObjectCollection as input.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleCalculates a value for some input.abstract doubleCalculates the feature-value for a givenFeatureInputObjectCollection.Class<? extends FeatureInput> The class corresponding to feature input-type.Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toStringMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
FeatureObjectCollection
public FeatureObjectCollection()
-
-
Method Details
-
calculate
public double calculate(FeatureCalculationInput<FeatureInputObjectCollection> input) throws FeatureCalculationException Description copied from class:FeatureCalculates a value for some input.- Specified by:
calculatein classFeature<FeatureInputObjectCollection>- Parameters:
input- the input to the calculation.- Returns:
- the result of the calculation.
- Throws:
FeatureCalculationException- if the calculation cannot successfully complete.
-
calculate
public abstract double calculate(FeatureInputObjectCollection input) throws FeatureCalculationException Calculates the feature-value for a givenFeatureInputObjectCollection.- Parameters:
input- the input..- Returns:
- the calculated feature-value.
- Throws:
FeatureCalculationException- if the feature-value cannot be calculated.
-
inputType
Description copied from class:FeatureThe class corresponding to feature input-type.i.e. corresponding to the
Ttemplate parameter.- Specified by:
inputTypein classFeature<FeatureInputObjectCollection>- Returns:
- the class.
-