|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ocvolume.vq.point
last updated on June 15, 2002
description: point class which stores coordinates in k-dimensional space
calls: none
called by: centroid, codebook
input: set of co-ordinates
output: none
Field Summary | |
protected double[] |
coordinates
k-dimensional coordinates array |
protected int |
dimension
k-dimensions |
Constructor Summary | |
point(double[] co)
constructor to create a point with k-dimensional coordinates array calls: none called by: centroid, codebook |
Method Summary | |
void |
changeCo(double[] tCo)
replace coordinates with new ones calls: none called by: centroid, codebook |
static boolean |
equals(point p1,
point p2)
check whether two points are identical calls: none called by: centroid, codebook |
double[] |
getAllCo()
get all the coordinates calls: none called by: codebook |
double |
getCo(int i)
get coordinate at specific index calls: none called by: centroid, codebook |
int |
getDimension()
get the k-dimensional space that the point is in calls: none called by: centroid, codebook |
void |
setCo(int i,
double value)
set coordinate at specific index calls: none called by: centroid, codebook |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double[] coordinates
protected int dimension
Constructor Detail |
public point(double[] co)
co
- k-dimensional coordinates arrayMethod Detail |
public double[] getAllCo()
public double getCo(int i)
i
- index number
public void setCo(int i, double value)
i
- index numbervalue
- value of coordinatepublic void changeCo(double[] tCo)
tCo
- new coordinates arraypublic int getDimension()
public static boolean equals(point p1, point p2)
p1
- first pointp2
- second point
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |