Package com.ggalmazor.ltdownsampling
Class DoublePoint
java.lang.Object
com.ggalmazor.ltdownsampling.DoublePoint
- All Implemented Interfaces:
Point
This class provides a basic
Point
implementation on Double
values to be used with LTThreeBuckets.sorted(java.util.List<T>, int)
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getX()
double
getY()
static DoublePoint
Utility factory forDoublePoint
that takes abstractNumber
x and y valuestoString()
-
Constructor Details
-
DoublePoint
public DoublePoint(double x, double y) - Parameters:
x
- the double value of the point in the horizontal dimension (time)y
- the double value of the point in the vertical dimension
-
-
Method Details
-
of
Utility factory forDoublePoint
that takes abstractNumber
x and y values- Parameters:
x
- the value of the point in the horizontal dimension (time)y
- the value of the point in the vertical dimension- Returns:
- the new
DoublePoint
instance
-
getX
public double getX() -
getY
public double getY() -
toString
-