org.knime.base.node.mine.sota.logic
Class SotaFuzzyCell

java.lang.Object
  extended by org.knime.base.node.mine.sota.logic.SotaFuzzyCell
All Implemented Interfaces:
SotaCell, DataValue, FuzzyIntervalValue, FuzzyNumberValue

public final class SotaFuzzyCell
extends Object
implements SotaCell, FuzzyIntervalValue, FuzzyNumberValue

Author:
Kilian Thiel, University of Konstanz

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.knime.core.data.FuzzyIntervalValue
FuzzyIntervalValue.FuzzyIntervalUtilityFactory
 
Nested classes/interfaces inherited from interface org.knime.core.data.FuzzyNumberValue
FuzzyNumberValue.FuzzyNumberUtilityFactory
 
Nested classes/interfaces inherited from interface org.knime.core.data.DataValue
DataValue.UtilityFactory
 
Field Summary
 
Fields inherited from interface org.knime.core.data.FuzzyIntervalValue
UTILITY
 
Fields inherited from interface org.knime.core.data.FuzzyNumberValue
UTILITY
 
Constructor Summary
SotaFuzzyCell(double minSupp, double minCore, double maxCore, double maxSupp)
          Creates new instance of SotaFuzzyCell with given min, max support and core region.
 
Method Summary
 void adjustCell(DataCell cell, double learningrate)
          Adjusts the cells value related to the given cell with given learningrate.
 SotaCell clone()
          Clones the SotaCell instance and returns the clone.
 double getCenterOfGravity()
          
 double getCore()
          
 double getMaxCore()
          
 double getMaxSupport()
          
 double getMinCore()
          
 double getMinSupport()
          
 String getType()
          
 double getValue()
          Returns a double value of the cell.
 void loadFrom(ModelContentRO modelContent)
          Loads the values from the given ModelContentWO.
 void saveTo(ModelContentWO modelContent)
          Saves the value of the SotaCell to the given ModelContentWO.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SotaFuzzyCell

public SotaFuzzyCell(double minSupp,
                     double minCore,
                     double maxCore,
                     double maxSupp)
Creates new instance of SotaFuzzyCell with given min, max support and core region.

Parameters:
minSupp - minimal support value
minCore - minimal core value
maxCore - maximal support value
maxSupp - maximal core value
Method Detail

adjustCell

public void adjustCell(DataCell cell,
                       double learningrate)
Adjusts the cells value related to the given cell with given learningrate.

Specified by:
adjustCell in interface SotaCell
Parameters:
cell - cell to adjust SotaCell with
learningrate - learningrate to adjust cell value with

getValue

public double getValue()
Returns a double value of the cell.

Specified by:
getValue in interface SotaCell
Returns:
a double value of the cell

getMinSupport

public double getMinSupport()

Specified by:
getMinSupport in interface FuzzyIntervalValue
Specified by:
getMinSupport in interface FuzzyNumberValue
Returns:
Minimum support value.

getMinCore

public double getMinCore()

Specified by:
getMinCore in interface FuzzyIntervalValue
Returns:
Minimum core value.

getMaxCore

public double getMaxCore()

Specified by:
getMaxCore in interface FuzzyIntervalValue
Returns:
Maximum core value.

getMaxSupport

public double getMaxSupport()

Specified by:
getMaxSupport in interface FuzzyIntervalValue
Specified by:
getMaxSupport in interface FuzzyNumberValue
Returns:
Maximum support value.

getCenterOfGravity

public double getCenterOfGravity()

Specified by:
getCenterOfGravity in interface FuzzyIntervalValue
Returns:
The center of gravity of this fuzzy membership function.

clone

public SotaCell clone()
Clones the SotaCell instance and returns the clone.

Specified by:
clone in interface SotaCell
Overrides:
clone in class Object
Returns:
the clone of the SotaCell instance

loadFrom

public void loadFrom(ModelContentRO modelContent)
              throws InvalidSettingsException
Loads the values from the given ModelContentWO.

Specified by:
loadFrom in interface SotaCell
Parameters:
modelContent - The ModelContentWO to load the values from.
Throws:
InvalidSettingsException - If setting to load is not valid.

saveTo

public void saveTo(ModelContentWO modelContent)
Saves the value of the SotaCell to the given ModelContentWO.

Specified by:
saveTo in interface SotaCell
Parameters:
modelContent - The ModelContentWO to save the values to.

getType

public String getType()

Specified by:
getType in interface SotaCell
Returns:
Returns the cells type.

getCore

public double getCore()

Specified by:
getCore in interface FuzzyNumberValue
Returns:
Core value.


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.