|
||||||||||
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.Interval
public class Interval
Represents an interval in a certain dimension of the data space.
Field Summary | |
---|---|
private int |
dimension
The dimension of this interval in the (original) data space. |
private double |
max
The maximum (right) value of this interval. |
private double |
min
The minimum (left) value of this interval. |
Constructor Summary | |
---|---|
Interval(int dimension,
double min,
double max)
Creates a new interval with the specified parameters. |
Method Summary | |
---|---|
int |
compareTo(Interval other)
Compares this interval with the specified interval for order. |
int |
getDimension()
Returns the dimension of the interval in the original data space |
double |
getMax()
Returns the maximum (right) value of the interval. |
double |
getMin()
Returns the minimum (left) value of the interval. |
String |
toString()
Returns a string representation of this interval. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int dimension
private double min
private double max
Constructor Detail |
---|
public Interval(int dimension, double min, double max)
dimension
- the dimension of the interval in the original data spacemin
- the minimum (left) value of the intervalmax
- the maximum (right) value of the intervalMethod Detail |
---|
public int getDimension()
public double getMin()
public double getMax()
public String toString()
toString
in class Object
public int compareTo(Interval other)
compareTo
in interface Comparable<Interval>
other
- the interval to be compared
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |