com.rapidminer.operator.visualization.dependencies
Class MutualInformationMatrixOperator

java.lang.Object
  extended by com.rapidminer.tools.AbstractObservable<Operator>
      extended by com.rapidminer.operator.Operator
          extended by com.rapidminer.operator.visualization.dependencies.AbstractPairwiseMatrixOperator
              extended by com.rapidminer.operator.visualization.dependencies.MutualInformationMatrixOperator
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ResourceConsumer, ParameterHandler, LoggingHandler, Observable<Operator>

public class MutualInformationMatrixOperator
extends AbstractPairwiseMatrixOperator

This operator calculates the mutual information matrix between all attributes of the input example set. This operator produces a dependency matrix which can be displayed to the user in the result tab.

Please note that this simple implementation performs a data scan for each attribute combination and might therefore take some time for non-memory example tables.

Author:
Ingo Mierswa

Constructor Summary
MutualInformationMatrixOperator(OperatorDescription description)
           
 
Method Summary
 java.lang.String getMatrixName()
           
 double getMatrixValue(ExampleSet exampleSet, Attribute firstAttribute, Attribute secondAttribute)
          Calculates the mutual information for both attributes.
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
protected  ExampleSet performPreprocessing(ExampleSet eSet)
          This preprocessing discretizes the input example set by a view.
 
Methods inherited from class com.rapidminer.operator.visualization.dependencies.AbstractPairwiseMatrixOperator
doWork
 
Methods inherited from class com.rapidminer.operator.Operator
acceptsInput, addError, addError, addValue, addWarning, apply, apply, assumePreconditionsSatisfied, checkAll, checkAllExcludingMetaData, checkDeprecations, checkForStop, checkIO, checkProperties, clear, clearErrorList, cloneOperator, collectErrors, createExperimentTree, createExperimentTree, createFromXML, createFromXML, createFromXML, createMarkedExperimentTree, createMarkedProcessTree, createProcessTree, createProcessTree, disconnectPorts, execute, fireUpdate, freeMemory, getAddOnlyAdditionalOutput, getApplyCount, getCompatibilityLevel, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getDOMRepresentation, getEncoding, getErrorList, getExecutionUnit, getExperiment, getIncompatibleVersionChanges, getInput, getInput, getInput, getInputClasses, getInputDescription, getInputPorts, getIODescription, getLog, getLogger, getName, getNumberOfBreakpoints, getOperatorClassName, getOperatorDescription, getOutputClasses, getOutputPorts, getParameter, getParameterAsBoolean, getParameterAsChar, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsFile, getParameterAsInputStream, getParameterAsInt, getParameterAsMatrix, getParameterAsRepositoryLocation, getParameterAsString, getParameterHandler, getParameterList, getParameters, getParameterTupel, getParameterType, getParent, getPortOwner, getProcess, getResourceConsumptionEstimator, getRoot, getStartTime, getTransformer, getUserDescription, getValue, getValues, getXML, getXML, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isDebugMode, isDirty, isEnabled, isExpanded, isParallel, isParameterSet, isRunning, log, log, logError, logNote, logWarning, lookupOperator, makeDirty, makeDirtyOnUpdate, notifyRenaming, performAdditionalChecks, preAutoWire, processFinished, processStarts, producesOutput, propagateDirtyness, register, registerOperator, remove, removeAndKeepConnections, rename, resume, setBreakpoint, setCompatibilityLevel, setEnabled, setEnclosingProcess, setExpanded, setInput, setListParameter, setPairParameter, setParameter, setParameters, setUserDescription, shouldAutoConnect, shouldAutoConnect, shouldStopStandaloneExecution, toString, transformMetaData, unregisterOperator, updateExecutionOrder, walk, writeXML, writeXML
 
Methods inherited from class com.rapidminer.tools.AbstractObservable
addObserver, addObserverAsFirst, fireUpdate, removeObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutualInformationMatrixOperator

public MutualInformationMatrixOperator(OperatorDescription description)
Method Detail

performPreprocessing

protected ExampleSet performPreprocessing(ExampleSet eSet)
                                   throws OperatorException
This preprocessing discretizes the input example set by a view.

Overrides:
performPreprocessing in class AbstractPairwiseMatrixOperator
Throws:
OperatorException

getMatrixName

public java.lang.String getMatrixName()
Specified by:
getMatrixName in class AbstractPairwiseMatrixOperator

getMatrixValue

public double getMatrixValue(ExampleSet exampleSet,
                             Attribute firstAttribute,
                             Attribute secondAttribute)
Calculates the mutual information for both attributes.

Specified by:
getMatrixValue in class AbstractPairwiseMatrixOperator

getParameterTypes

public java.util.List<ParameterType> getParameterTypes()
Description copied from class: Operator
Returns a list of ParameterTypes describing the parameters of this operator. The default implementation returns an empty list if no input objects can be retained and special parameters for those input objects which can be prevented from being consumed. ATTENTION! This will create new parameterTypes. For calling already existing parameter types use getParameters().getParameterTypes();

Specified by:
getParameterTypes in interface ParameterHandler
Overrides:
getParameterTypes in class Operator


Copyright © 2001-2009 by Rapid-I