Class ReduceRatioFirstAndSecond

Object
AnchorBean<FeatureListProvider<FeatureInputPairObjects>>
InitializableBean<FeatureListProvider<FeatureInputPairObjects>, FeatureRelatedInitialization>
FeatureRelatedBean<FeatureListProvider<FeatureInputPairObjects>>
FeatureProviderBean<FeatureListProvider<FeatureInputPairObjects>, FeatureList<FeatureInputPairObjects>>
FeatureListProvider<FeatureInputPairObjects>
FeatureListProviderAggregatePair
ReduceRatioFirstAndSecond
All Implemented Interfaces:
Provider<FeatureList<FeatureInputPairObjects>>

public class ReduceRatioFirstAndSecond extends FeatureListProviderAggregatePair
Calculates the aggregate of the ratio of first:second and second :first for a FeatureInputPairObjects

first and second refer respectively to a feature calculated on the first and second objects of a FeatureInputPairObjects.

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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.

    Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.list.pair.FeatureListProviderAggregatePair

    createReducedFeature, get, getItem, getPrefix, getReduce, setItem, setPrefix, setReduce

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ReduceRatioFirstAndSecond

      public ReduceRatioFirstAndSecond()
  • Method Details

    • createAggregateFeature

      protected Feature<FeatureInputPairObjects> createAggregateFeature(Feature<FeatureInputPairObjects> first, Feature<FeatureInputPairObjects> second, Feature<FeatureInputPairObjects> merged)
      Description copied from class: FeatureListProviderAggregatePair
      Creates an aggregate feature from individual features for first, second, and merged objects.
      Specified by:
      createAggregateFeature in class FeatureListProviderAggregatePair
      Parameters:
      first - feature for the first object
      second - feature for the second object
      merged - feature for the merged object
      Returns:
      an aggregate feature combining the three input features