adams.data.instances
Class HeatmapArffUtils

java.lang.Object
  extended by adams.data.weka.ArffUtils
      extended by adams.data.instances.HeatmapArffUtils

public class HeatmapArffUtils
extends ArffUtils

A helper class for turning heatmap data into ARFF files and vice versa.

Version:
$Revision: 6027 $
Author:
fracpete (fracpete at waikato dot ac dot nz)

Field Summary
static String PREFIX_INTENSITY
          the prefix for intensity values.
 
Fields inherited from class adams.data.weka.ArffUtils
PREFIX_ADDITIONALFIELDS, PREFIX_NOTE
 
Constructor Summary
HeatmapArffUtils()
           
 
Method Summary
static String getIntensityName(int row, int col)
          Generates the attribute name for an intensity value.
static Remove getRemoveFilter(Instances data)
          Initializes the Remove filter for removing all IDs from the dataset.
 
Methods inherited from class adams.data.weka.ArffUtils
getAdditionalFieldName, getDBIDName, getFieldName, getIDName, getNoteName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX_INTENSITY

public static final String PREFIX_INTENSITY
the prefix for intensity values.

See Also:
Constant Field Values
Constructor Detail

HeatmapArffUtils

public HeatmapArffUtils()
Method Detail

getIntensityName

public static String getIntensityName(int row,
                                      int col)
Generates the attribute name for an intensity value.

Parameters:
row - the row of the intensity
col - the column of the intensity
Returns:
the attribute name

getRemoveFilter

public static Remove getRemoveFilter(Instances data)
Initializes the Remove filter for removing all IDs from the dataset.

Parameters:
data - the data to use for the analysis
Returns:
the configured filter, null if no filtering required
Throws:
Exception - if filter setup fails


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.