Package weka.core
Class HashableInstanceUsingSum
- java.lang.Object
-
- weka.core.AbstractHashableInstance
-
- weka.core.HashableInstanceUsingSum
-
- All Implemented Interfaces:
Serializable
,weka.core.Copyable
,weka.core.Instance
public class HashableInstanceUsingSum extends AbstractHashableInstance
Computes the hashcode as sum of the internal double values.- 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
Constructors Constructor Description HashableInstanceUsingSum(weka.core.Instance data)
Initializes the wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
computeHashCode()
Computes the hashcode.-
Methods inherited from class weka.core.AbstractHashableInstance
assign, attribute, attributeSparse, classAttribute, classIndex, classIsMissing, classValue, copy, 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
-
-
-
-
Method Detail
-
computeHashCode
protected int computeHashCode()
Computes the hashcode.- Specified by:
computeHashCode
in classAbstractHashableInstance
- Returns:
- the hash code
- See Also:
AbstractHashableInstance.m_ExcludeWeight
-
-