weka.core
Class HashableInstanceUsingString

java.lang.Object
  extended by weka.core.AbstractHashableInstance
      extended by weka.core.HashableInstanceUsingString
All Implemented Interfaces:
Serializable, weka.core.Copyable, weka.core.Instance

public class HashableInstanceUsingString
extends AbstractHashableInstance

TODO: what this class does

Version:
$Revision: 5656 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class weka.core.AbstractHashableInstance
m_Data, m_ExcludeClass, m_ExcludeWeight, m_HashCode
 
Constructor Summary
HashableInstanceUsingString(weka.core.Instance data)
          Initializes the wrapper.
 
Method Summary
protected  int computeHashCode()
          Computes the hashcode.
 
Methods inherited from class weka.core.AbstractHashableInstance
assign, attribute, attributeSparse, classAttribute, classIndex, classIsMissing, classValue, copy, dataset, deleteAttributeAt, enumerateAttributes, equalHeaders, equalHeadersMsg, equals, getExcludeClass, getExcludeWeight, hashCode, hasMissingValue, index, insertAttributeAt, invalidateHashCode, isMissing, isMissing, isMissingSparse, mergeInstance, numAttributes, numClasses, numValues, relationalValue, relationalValue, replaceMissingValues, setClassMissing, setClassValue, setClassValue, setDataset, setExcludeClass, setExcludeWeight, setMissing, setMissing, setValue, setValue, setValue, setValue, setValueSparse, setWeight, stringValue, stringValue, toDoubleArray, toString, toString, toString, toString, toString, toStringMaxDecimalDigits, toStringNoWeight, toStringNoWeight, value, value, valueSparse, weight
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HashableInstanceUsingString

public HashableInstanceUsingString(weka.core.Instance data)
Initializes the wrapper. Class is included in hashcode by default.

Parameters:
data - the instance to wrap
Method Detail

computeHashCode

protected int computeHashCode()
Computes the hashcode.

Specified by:
computeHashCode in class AbstractHashableInstance
Returns:
the hash code
See Also:
{@link #m_ExcludeClass}


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