public class ModifiableHyperBoundingBox extends HyperBoundingBox
HyperBoundingBox).| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
Serial version.
|
max, min| Constructor and Description |
|---|
ModifiableHyperBoundingBox()
Constructor.
|
ModifiableHyperBoundingBox(double[] min,
double[] max)
Creates a ModifiableHyperBoundingBox for the given hyper points.
|
ModifiableHyperBoundingBox(int dim,
double min,
double max)
Create a ModifiableHyperBoundingBox with given min and max.
|
ModifiableHyperBoundingBox(SpatialComparable hbb)
Derive a bounding box from a spatial object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
extend(SpatialComparable obj)
Extend the bounding box by some other spatial object.
|
double[] |
getMaxRef()
Returns the reference to the maximum hyper point.
|
double[] |
getMinRef()
Returns a reference to the minimum hyper point.
|
void |
set(SpatialComparable obj)
Set the bounding box to the same as some other spatial object.
|
void |
setMax(int dimension,
double value)
Set the maximum bound in dimension
dimension to value
value. |
void |
setMin(int dimension,
double value)
Set the minimum bound in dimension
dimension to value
value. |
equals, getDimensionality, getMax, getMin, hashCode, readExternal, toString, toString, writeExternalprivate static final long serialVersionUID
public ModifiableHyperBoundingBox()
public ModifiableHyperBoundingBox(SpatialComparable hbb)
hbb - existing hyperboundingboxpublic ModifiableHyperBoundingBox(double[] min,
double[] max)
min - - the coordinates of the minimum hyper pointmax - - the coordinates of the maximum hyper pointpublic ModifiableHyperBoundingBox(int dim,
double min,
double max)
dim - Dimensionalitymin - Minimum in each dimensionmax - Maximum in each dimensionpublic void setMax(int dimension,
double value)
dimension to value
value.dimension - the dimension for which the coordinate should be set,
where 1 ≤ dimension ≤ this.getDimensionality()value - the coordinate to set as upper bound for dimension
dimensionpublic void setMin(int dimension,
double value)
dimension to value
value.dimension - the dimension for which the lower bound should be set,
where 1 ≤ dimension ≤ this.getDimensionality()value - the coordinate to set as lower bound for dimension
dimensionpublic double[] getMinRef()
public double[] getMaxRef()
public void set(SpatialComparable obj)
obj - Spatial object to set to.public boolean extend(SpatialComparable obj)
obj - Spatial object to extend withCopyright © 2019 ELKI Development Team. License information.