java.lang.Object
de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
de.uni_trier.wi2.procake.similarity.base.numeric.impl.SMNumericImpl
All Implemented Interfaces:
SMNumeric, SimilarityMeasure
Direct Known Subclasses:
SMNumericExponentialImpl, SMNumericFuzzyImpl, SMNumericLinearImpl, SMNumericSigmoidImpl, SMNumericThresholdImpl

public abstract class SMNumericImpl extends SimilarityMeasureImpl implements SMNumeric
Author:
rmaximi
  • Constructor Details

    • SMNumericImpl

      public SMNumericImpl()
  • Method Details

    • getAtomicClass

      public AtomicClass getAtomicClass()
    • isSimilarityFor

      public boolean isSimilarityFor(DataClass dataclass, String orderName)
      Specified by:
      isSimilarityFor in class SimilarityMeasureImpl
    • getAsymmetricStrategy

      public SMNumeric.ZERO_OUT_STRATEGIES getAsymmetricStrategy()
      Description copied from interface: SMNumeric
      gets the asymmetric strategy
      Specified by:
      getAsymmetricStrategy in interface SMNumeric
      Returns:
    • setAsymmetricStrategy

      public void setAsymmetricStrategy(SMNumeric.ZERO_OUT_STRATEGIES strategy)
      Description copied from interface: SMNumeric
      sets the asymmetric strategy
      Specified by:
      setAsymmetricStrategy in interface SMNumeric
    • applyAsymmetricSituation

      protected double applyAsymmetricSituation(DataObject queryObject, DataObject caseObject, double currentSimValue)
      checks and applies (if allowed) any asymmetric situation for query and case.
      Parameters:
      queryObject -
      caseObject -
      currentSimValue - the current value of sim, for which the asymmetric strategy has not yet been applied
      Returns:
      new sim value according to the applied asymmetric strategy