Class NamedFeatureCalculatorMulti<T extends FeatureInput>
Object
NamedFeatureCalculatorMulti<T>
- Type Parameters:
T
- feature input type
A
FeatureCalculatorMulti
with associated feature-names.
This class combines a multi-feature calculator with a list of feature names, allowing for named feature calculations.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionNamedFeatureCalculatorMulti
(FeatureCalculatorMulti<T> calculator, FeatureNameList names) Creates a newNamedFeatureCalculatorMulti
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
The multi-feature calculator.getNames()
The list of feature names associated with the calculator.int
hashCode()
mapCalculator
(UnaryOperator<FeatureCalculatorMulti<T>> mapOperator) Creates a new instance by applying a mapping function to the calculator.toString()
-
Constructor Details
-
NamedFeatureCalculatorMulti
Creates a newNamedFeatureCalculatorMulti
instance.- Parameters:
calculator
- The multi-feature calculator.names
- The list of feature names associated with the calculator.
-
-
Method Details
-
mapCalculator
public NamedFeatureCalculatorMulti<T> mapCalculator(UnaryOperator<FeatureCalculatorMulti<T>> mapOperator) Creates a new instance by applying a mapping function to the calculator.- Parameters:
mapOperator
- a unary operator that transforms the calculator- Returns:
- a new NamedFeatureCalculatorMulti with the transformed calculator and the same names
-
getCalculator
The multi-feature calculator. -
getNames
The list of feature names associated with the calculator. -
equals
-
hashCode
public int hashCode() -
toString
-