Class FeatureListProviderAggregatePair
Object
- All Implemented Interfaces:
Provider<FeatureList<FeatureInputPairObjects>>
- Direct Known Subclasses:
ReduceFirstAndSecond
,ReduceRatioFirstAndSecond
,SubtractReducedFromMerged
public abstract class FeatureListProviderAggregatePair
extends FeatureListProvider<FeatureInputPairObjects>
Calculates features on each part of a pair (first, second, merged etc.) and then reduces the
calculation to a single number.
Specifically, each feature is calculated for the first, second, merged parts of the pair, then "reduced" into a single feature-value.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Feature
<FeatureInputPairObjects> createAggregateFeature
(Feature<FeatureInputPairObjects> first, Feature<FeatureInputPairObjects> second, Feature<FeatureInputPairObjects> merged) Creates an aggregate feature from individual features for first, second, and merged objects.protected FeatureFromList
<FeatureInputPairObjects> createReducedFeature
(Feature<FeatureInputPairObjects> first, Feature<FeatureInputPairObjects> second) Creates a reduced feature from features for the first and second objects.get()
Gets or creates an object of typeT
.getItem()
For each feature in the list, a corresponding aggregate feature is created in the output list.The string to prepend.Method for reducing all pairs into a single value e.g.void
For each feature in the list, a corresponding aggregate feature is created in the output list.void
The string to prepend.void
Method for reducing all pairs into a single value e.g.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FeatureListProviderAggregatePair
public FeatureListProviderAggregatePair()
-
-
Method Details
-
get
Description copied from interface:Provider
Gets or creates an object of typeT
.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException
- if the object cannot be returned.
-
createAggregateFeature
protected abstract Feature<FeatureInputPairObjects> createAggregateFeature(Feature<FeatureInputPairObjects> first, Feature<FeatureInputPairObjects> second, Feature<FeatureInputPairObjects> merged) Creates an aggregate feature from individual features for first, second, and merged objects.- Parameters:
first
- feature for the first objectsecond
- feature for the second objectmerged
- feature for the merged object- Returns:
- an aggregate feature combining the three input features
-
createReducedFeature
protected FeatureFromList<FeatureInputPairObjects> createReducedFeature(Feature<FeatureInputPairObjects> first, Feature<FeatureInputPairObjects> second) Creates a reduced feature from features for the first and second objects.- Parameters:
first
- feature for the first objectsecond
- feature for the second object- Returns:
- a
FeatureFromList
that reduces the two input features
-
getItem
For each feature in the list, a corresponding aggregate feature is created in the output list. -
setItem
For each feature in the list, a corresponding aggregate feature is created in the output list. -
getPrefix
The string to prepend. -
setPrefix
The string to prepend. -
getReduce
Method for reducing all pairs into a single value e.g. Mean, Max, Min etc. -
setReduce
Method for reducing all pairs into a single value e.g. Mean, Max, Min etc.
-