Class ToThePowerOfConstant<T extends FeatureInput>
Object
AnchorBean<Feature<T>>
InitializableBean<Feature<T>,FeatureInitialization>
Feature<T>
FeatureUnary<T,T>
FeatureUnaryGeneric<T>
WithValueBase<T>
ToThePowerOfConstant<T>
- Type Parameters:
T- the type ofFeatureInputthis feature operates on
A feature that raises the result of another feature to the power of a constant value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcombineDescription(String valueDescription, String featureDescription) Combines the descriptions of the constant value and the feature.protected doublecombineValueAndFeature(double value, double featureResult) Combines the constant value with the feature result.Methods inherited from class org.anchoranalysis.plugin.operator.feature.bean.WithValueBase
calculate, descriptionLong, getValue, setValueMethods inherited from class org.anchoranalysis.feature.bean.operator.FeatureUnary
getItem, inputType, setItemMethods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, 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
-
ToThePowerOfConstant
public ToThePowerOfConstant()
-
-
Method Details
-
combineValueAndFeature
protected double combineValueAndFeature(double value, double featureResult) Description copied from class:WithValueBaseCombines the constant value with the feature result.- Specified by:
combineValueAndFeaturein classWithValueBase<T extends FeatureInput>- Parameters:
value- the constant value specified for this operationfeatureResult- the result of the feature calculation- Returns:
- the combined result
-
combineDescription
Description copied from class:WithValueBaseCombines the descriptions of the constant value and the feature.- Specified by:
combineDescriptionin classWithValueBase<T extends FeatureInput>- Parameters:
valueDescription- the description of the constant valuefeatureDescription- the description of the feature- Returns:
- the combined description
-