|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.data.HyperBoundingBox
public class HyperBoundingBox

HyperBoundingBox represents a hyperrectangle in the multidimensional space.
| Field Summary | |
|---|---|
protected double[] |
max
The coordinates of the 'upper right' (= maximum) hyper point. |
protected double[] |
min
The coordinates of the 'lower left' (= minimum) hyper point. |
private static long |
serialVersionUID
Serial version |
| Constructor Summary | |
|---|---|
HyperBoundingBox()
Empty constructor for Externalizable interface. |
|
HyperBoundingBox(double[] min,
double[] max)
Creates a HyperBoundingBox for the given hyper points. |
|
HyperBoundingBox(SpatialComparable other)
Constructor, cloning an existing spatial object. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
getDimensionality()
Returns the dimensionality of this HyperBoundingBox. |
double |
getMax(int dimension)
Returns the coordinate at the specified dimension of the maximum hyper point |
double |
getMin(int dimension)
Returns the coordinate at the specified dimension of the minimum hyper point |
int |
hashCode()
|
void |
readExternal(ObjectInput in)
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
String |
toString()
Returns a String representation of the HyperBoundingBox. |
String |
toString(String pre,
NumberFormat nf)
Returns a String representation of the HyperBoundingBox. |
void |
writeExternal(ObjectOutput out)
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
protected double[] min
protected double[] max
| Constructor Detail |
|---|
public HyperBoundingBox()
public HyperBoundingBox(double[] min,
double[] max)
min - - the coordinates of the minimum hyper pointmax - - the coordinates of the maximum hyper pointpublic HyperBoundingBox(SpatialComparable other)
other - Object to clone| Method Detail |
|---|
public double getMin(int dimension)
getMin in interface SpatialComparabledimension - the dimension for which the coordinate should be returned,
where 1 ≤ dimension ≤ this.getDimensionality()
public double getMax(int dimension)
getMax in interface SpatialComparabledimension - the dimension for which the coordinate should be returned,
where 1 ≤ dimension ≤ this.getDimensionality()
public int getDimensionality()
getDimensionality in interface SpatialComparablepublic String toString()
toString in class Object
public String toString(String pre,
NumberFormat nf)
nf - number format for output accuracypre - the prefix of each line
public boolean equals(Object obj)
equals in class ObjectObject.equals(Object)public int hashCode()
hashCode in class ObjectObject.hashCode()
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface Externalizableout - the stream to write the object to
IOException - Includes any I/O exceptions that may occur
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface Externalizablein - the stream to read data from in order to restore the object
IOException - if I/O errors occur
ClassNotFoundException - If the class for an object being restored
cannot be found.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||