public class CorrelationMatrixRowReduceTask
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
CorrelationMatrixRowReduceTask() |
Modifier and Type | Method and Description |
---|---|
double[] |
aggregate(int matrixRowNumber,
java.util.List<double[]> toAggregate,
java.util.List<int[]> coOccurrencesToAgg,
weka.core.Instances headerWithSummaryAtts,
boolean missingsWereReplacedWithMeans,
boolean covarianceInsteadOfCorrelation,
boolean deleteClassIfSet)
Aggregate a list of partial rows of the matrix.
|
static java.awt.Image |
getHeatMapForMatrix(weka.core.matrix.Matrix matrix,
java.util.List<java.lang.String> rowAttNames) |
static void |
writeHeatMapImage(java.awt.Image map,
java.io.OutputStream dest) |
public static java.awt.Image getHeatMapForMatrix(weka.core.matrix.Matrix matrix, java.util.List<java.lang.String> rowAttNames)
public static void writeHeatMapImage(java.awt.Image map, java.io.OutputStream dest) throws java.io.IOException
java.io.IOException
public double[] aggregate(int matrixRowNumber, java.util.List<double[]> toAggregate, java.util.List<int[]> coOccurrencesToAgg, weka.core.Instances headerWithSummaryAtts, boolean missingsWereReplacedWithMeans, boolean covarianceInsteadOfCorrelation, boolean deleteClassIfSet) throws DistributedWekaException
matrixRowNumber
- the index of the row in the matrix to be aggregatedtoAggregate
- a list rows to be aggregatedcoOccurrencesToAgg
- a list of co-occurrence counts to aggregate (will
be null if missings have been replaced with means)headerWithSummaryAtts
- the header of the data (including summary
attributes)missingsWereReplacedWithMeans
- true if missing values were replaced
by means in the map taskscovarianceInsteadOfCorrelation
- final matrix is to be a covariance
one rather than correlationdeleteClassIfSet
- true if the class attribute is to be deleted (if
set)DistributedWekaException
- if a problem occurs