mobios.index
Class VPLeafNode
java.lang.Object
mobios.index.VPLeafNode
- All Implemented Interfaces:
- Externalizable, Serializable
public class VPLeafNode
- extends Object
A VPLeafNode is a LeafNode in a VPIndex.
- Author:
- Rui Mao, Willard
- See Also:
- Serialized Form
VPLeafNode
public VPLeafNode()
VPLeafNode
public VPLeafNode(IndexObject[] pivots,
IndexObject[] children,
int size,
double[][] distance,
double[][] pathDistance)
- Main constructor.
- Parameters:
pivots - an array of @IndexObjects comprising the pivots of this node.children - an array of @IndexObjects comprising the children of this node.size - the size of this leaf node.distance - distances from each distinct data point (row) to each pivotpathDistance - distances from each distinct data point (row) to each pivot(column) on the path from
the root to this node.
getDataPointPivotDistance
public double[] getDataPointPivotDistance(int childIndex)
- Parameters:
childIndex -
- Returns:
- the distances from a child to all the pivots.
getDataPointPathDistance
public double[] getDataPointPathDistance(int childIndex)
- Parameters:
childIndex -
- Returns:
- the path distance list, consisting of the distances from a child to pivots on the
path from the root to the node, can be of lenght 0, but can not be null.
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable
- Throws:
IOException
ClassNotFoundException
(C) 2002 - 2006 The MoBIoS Group