de.aitools.ir.fingerprinting.hashfunction
Class FuzzyFingerprintingEncoding.FuzzificationScheme

java.lang.Object
  extended by de.aitools.ir.fingerprinting.hashfunction.FuzzyFingerprintingEncoding.FuzzificationScheme
Enclosing class:
FuzzyFingerprintingEncoding

public class FuzzyFingerprintingEncoding.FuzzificationScheme
extends java.lang.Object

A class to represent a fuzzification scheme.


Constructor Summary
FuzzyFingerprintingEncoding.FuzzificationScheme()
          The default constructor.
FuzzyFingerprintingEncoding.FuzzificationScheme(double[] intervalBoundaries)
          The explicit constructor.
 
Method Summary
 double evaluate(double value)
          Applies the fuzzification scheme to the given value and returns it fuzzified representation.
 double[] getIntervalBoundaries()
          Returns the internal interval boundaries.
 int locate(double value)
          Finds the index of the interval the value corresponds to.
 void setIntervalBoundaries(double[] intervalBoundaries)
          Sets the internal interval boundaries.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuzzyFingerprintingEncoding.FuzzificationScheme

public FuzzyFingerprintingEncoding.FuzzificationScheme()
The default constructor. Initializes the interval boundaries with {0.5} to create the two intervals [0, 0.5] and (0.5, 1].


FuzzyFingerprintingEncoding.FuzzificationScheme

public FuzzyFingerprintingEncoding.FuzzificationScheme(double[] intervalBoundaries)
The explicit constructor. Initializes the fuzzification scheme with user defined interval boundaries. All boundaries have to be defined in the range (0, 1).

Parameters:
intervalBoundaries -
Method Detail

evaluate

public double evaluate(double value)
Applies the fuzzification scheme to the given value and returns it fuzzified representation.

Parameters:
value - a normalized deviation in the range of [0, 1]
Returns:
the fuzzified representation as a double value

locate

public int locate(double value)
Finds the index of the interval the value corresponds to.

Parameters:
value - a normalized deviation in the range of [0, 1]
Returns:
the index of the corresponding interval

getIntervalBoundaries

public double[] getIntervalBoundaries()
Returns the internal interval boundaries.

Returns:
a number of doubles which represent the interval boundaries

setIntervalBoundaries

public void setIntervalBoundaries(double[] intervalBoundaries)
Sets the internal interval boundaries.

Parameters:
intervalBoundaries - the user defined interval boundaries