|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.misc.HyperPipes.HyperPipe
Represents an n-dimensional structure that bounds all instances passed to it (generally all of a given class value).
Field Summary | |
protected boolean[][] |
m_NominalBounds
Contains the nominal bounds of all instances in the HyperPipe |
protected double[][] |
m_NumericBounds
Contains the numeric bounds of all instances in the HyperPipe |
Constructor Summary | |
HyperPipes.HyperPipe(Instances instances)
Creates the HyperPipe as the n-dimensional parallel-piped with minimum volume containing all the points in pointSet. |
Method Summary | |
void |
addInstance(Instance instance)
Updates the bounds arrays with a single instance. |
double |
partialContains(Instance instance)
Returns the fraction of the dimensions of a given instance with values lying within the corresponding bounds of the HyperPipe. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double[][] m_NumericBounds
protected boolean[][] m_NominalBounds
Constructor Detail |
public HyperPipes.HyperPipe(Instances instances) throws java.lang.Exception
instances
- all instances belonging to the same class
java.lang.Exception
- if missing values are foundMethod Detail |
public void addInstance(Instance instance) throws java.lang.Exception
instance
- the instance
java.lang.Exception
- if any missing values are encounteredpublic double partialContains(Instance instance) throws java.lang.Exception
instance
- the instance
java.lang.Exception
- if any missing values are encountered
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |