de.hpi.fgis.dude.postprocessor
Enum ExtendedStatisticComponent.Config

java.lang.Object
  extended by java.lang.Enum<ExtendedStatisticComponent.Config>
      extended by de.hpi.fgis.dude.postprocessor.ExtendedStatisticComponent.Config
All Implemented Interfaces:
Serializable, Comparable<ExtendedStatisticComponent.Config>
Enclosing class:
ExtendedStatisticComponent

public static enum ExtendedStatisticComponent.Config
extends Enum<ExtendedStatisticComponent.Config>


Enum Constant Summary
DEFAULT
           
HYBRID
           
PAIRWISE_F1
           
PRECISION
           
RECALL
           
VARIATION_INFORMATION
           
 
Field Summary
 boolean activated
          To check if the current config measure should be used for evaluation.
 int n
          Total number of base records, needed for computation of VI measure.
 
Method Summary
 void activate()
          Activates usage of the current config measure.
 void deactivate()
          Deactivates usage of the current config measure.
abstract  double fMerge(double x, double y)
          Computes the costs for a merge operation
abstract  double fSplit(double x, double y)
          Computes the costs for a split operation
abstract  String getLabel()
          Returns the label of the configuration for the output components
 int getNumBaseRecords()
          Getter for total number of base records, needed for computation of VI.
 boolean isActivated()
          Checks if current config measure is activated for usage.
 void setNumBaseRecords(int n)
          Setter for total number of base records, needed for computation of VI.
static ExtendedStatisticComponent.Config valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ExtendedStatisticComponent.Config[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFAULT

public static final ExtendedStatisticComponent.Config DEFAULT

RECALL

public static final ExtendedStatisticComponent.Config RECALL

PRECISION

public static final ExtendedStatisticComponent.Config PRECISION

VARIATION_INFORMATION

public static final ExtendedStatisticComponent.Config VARIATION_INFORMATION

HYBRID

public static final ExtendedStatisticComponent.Config HYBRID

PAIRWISE_F1

public static final ExtendedStatisticComponent.Config PAIRWISE_F1
Field Detail

activated

public boolean activated
To check if the current config measure should be used for evaluation.


n

public int n
Total number of base records, needed for computation of VI measure.

Method Detail

values

public static ExtendedStatisticComponent.Config[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ExtendedStatisticComponent.Config c : ExtendedStatisticComponent.Config.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ExtendedStatisticComponent.Config valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

fSplit

public abstract double fSplit(double x,
                              double y)
Computes the costs for a split operation

Parameters:
x - the size of cluster x_i that was split off from the original cluster
y - The size of cluster y_i that was split off as other half of the original cluster
Returns:
The costs for a split operation

fMerge

public abstract double fMerge(double x,
                              double y)
Computes the costs for a merge operation

Parameters:
x - The size of cluster x_i that is merged with y_i
y - The size of cluster y_i that is merged with x_i
Returns:
The costs for a merge operation

getLabel

public abstract String getLabel()
Returns the label of the configuration for the output components

Returns:
The label of the configuration

activate

public void activate()
Activates usage of the current config measure.


deactivate

public void deactivate()
Deactivates usage of the current config measure.


isActivated

public boolean isActivated()
Checks if current config measure is activated for usage.


setNumBaseRecords

public void setNumBaseRecords(int n)
Setter for total number of base records, needed for computation of VI.

Parameters:
n - Total number of base records to set.

getNumBaseRecords

public int getNumBaseRecords()
Getter for total number of base records, needed for computation of VI.

Returns:
n Total number of base records currently set.


Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.