Package com.ggalmazor.ltdownsampling
Class DoublePoint
java.lang.Object
com.ggalmazor.ltdownsampling.DoublePoint
- All Implemented Interfaces:
Point
Basic
Point implementation backed by double values, for use with
LTThreeBuckets.sorted(java.util.List<T>, int).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetX()Returns the x horizontal (time) value of this point.doublegetY()Returns the y vertical value of this point.static DoublePointUtility factory forDoublePointthat accepts abstractNumbervalues.toString()Returns the text representation of this point.
-
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 forDoublePointthat accepts abstractNumbervalues.- 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
DoublePointinstance
-
getX
public double getX()Returns the x horizontal (time) value of this point. -
getY
public double getY()Returns the y vertical value of this point. -
toString
Returns the text representation of this point.
-