public class CorrelationMatrixMapTask
extends java.lang.Object
implements java.io.Serializable, weka.core.OptionHandler
Constructor and Description |
---|
CorrelationMatrixMapTask() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
covarianceTipText()
Tool tip text for this property.
|
int[][] |
getCoOccurrenceCounts()
The co-occurrence counts (will be null if missings are replaced by means)
|
boolean |
getCovariance()
Get whether to compute a covariance matrix rather than a correlation one
|
boolean |
getIgnoreMissingValues()
Get whether to ignore missing values
|
boolean |
getKeepClassAttributeIfSet()
Get whether to keep the class attribute as part of the correlation analysis
|
double[][] |
getMatrix()
Returns the matrix
|
java.lang.String[] |
getOptions() |
java.lang.String |
ignoreMissingValuesTipText()
Tool tip text for this property.
|
java.lang.String |
keepClassAttributeIfSetTipText()
Tool tip text for this property.
|
java.util.Enumeration<weka.core.Option> |
listOptions() |
static void |
main(java.lang.String[] args)
Main method for testing this class
|
void |
processInstance(weka.core.Instance inst)
Process an instance
|
void |
setCovariance(boolean cov)
Set whether to compute a covariance matrix rather than a correlation one
|
void |
setIgnoreMissingValues(boolean ignore)
Set whether to ignore missing values
|
void |
setKeepClassAttributeIfSet(boolean keep)
Set whether to keep the class attribute as part of the correlation analysis
|
void |
setOptions(java.lang.String[] options) |
void |
setup(weka.core.Instances trainingHeader)
Initialize the map task
|
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
java.lang.Exception
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
public java.lang.String ignoreMissingValuesTipText()
public void setIgnoreMissingValues(boolean ignore)
ignore
- true if missing values are to be ignoredpublic boolean getIgnoreMissingValues()
public java.lang.String keepClassAttributeIfSetTipText()
public void setKeepClassAttributeIfSet(boolean keep)
keep
- true if the class attribute is to be keptpublic boolean getKeepClassAttributeIfSet()
public java.lang.String covarianceTipText()
public void setCovariance(boolean cov)
cov
- true if a covariance matrix is to be computed rather than
correlationpublic boolean getCovariance()
public double[][] getMatrix()
public int[][] getCoOccurrenceCounts()
public void processInstance(weka.core.Instance inst) throws java.lang.Exception
inst
- the instance to processjava.lang.Exception
- if a problem occurspublic void setup(weka.core.Instances trainingHeader) throws DistributedWekaException
trainingHeader
- the training header for the data (including summary
meta attributes)DistributedWekaException
- if a problem occurspublic static void main(java.lang.String[] args)
args
- command line arguments