|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.data.HyperBoundingBox de.lmu.ifi.dbs.elki.data.ModifiableHyperBoundingBox
public class ModifiableHyperBoundingBox
MBR class allowing modifications (as opposed to HyperBoundingBox
).
Field Summary | |
---|---|
private static long |
serialVersionUID
Serial version |
Fields inherited from class de.lmu.ifi.dbs.elki.data.HyperBoundingBox |
---|
max, min |
Constructor Summary | |
---|---|
ModifiableHyperBoundingBox()
Constructor |
|
ModifiableHyperBoundingBox(double[] min,
double[] max)
Creates a ModifiableHyperBoundingBox for the given hyper points. |
|
ModifiableHyperBoundingBox(SpatialComparable hbb)
Uses the references to the fields in hbb as min ,
max fields. |
Method Summary | |
---|---|
double[] |
getMaxRef()
Returns the reference to the maximum hyper point. |
double[] |
getMinRef()
Returns a reference to the minimum hyper point. |
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 . |
Methods inherited from class de.lmu.ifi.dbs.elki.data.HyperBoundingBox |
---|
equals, getDimensionality, getMax, getMin, hashCode, readExternal, toString, toString, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public ModifiableHyperBoundingBox()
public ModifiableHyperBoundingBox(SpatialComparable hbb)
hbb
as min
,
max
fields. Thus, this constructor indirectly provides a way
to modify the fields of a HyperBoundingBox
.
FIXME: that isn't really nice and should be handled with care.
hbb
- existing hyperboundingboxpublic ModifiableHyperBoundingBox(double[] min, double[] max)
min
- - the coordinates of the minimum hyper pointmax
- - the coordinates of the maximum hyper pointMethod Detail |
---|
public 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
dimension
public 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
dimension
public double[] getMinRef()
public double[] getMaxRef()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |