public class Chunk
extends java.lang.Object
firstPoint
and lastPoint
. It includes many attributes:
distance, speed, time passed, altitud gained or lossed and grade, average
height, cadence and heart rate.Constructor and Description |
---|
Chunk(Waypoint w1,
Waypoint w2,
DistanceFunction distanceFunction,
double speedThreshold) |
Modifier and Type | Method and Description |
---|---|
double |
getAscent()
Gets the absolute increment of elevation between the two waypoints
|
double |
getAvgCadence()
Gets the average cadence between the two points, that is the mean between
the cadence registered at the first point and the cadence registered at
the second point.
|
double |
getAvgHeartRate()
Gets the average heart rate between the two points (that is the mean
between the heart rate registered at the first point and the heart rate
registered at the second point.
|
double |
getAvgHeight()
Gets the average elevation between the two points, that is the mean
between the elevation at the first point and the elevation at the second
point.
|
double |
getDescend()
Gets the absolute decrement of elevation between the two waypoints
|
double |
getDistance()
Gets the distance between the two waypoints
|
java.time.Duration |
getDuration()
Gets the total amount of time passed between registering the two
waypoints
|
Waypoint |
getFirstPoint()
Gets the first waypoint
|
double |
getGrade()
Gets the grade or ramp between the two waypoints.
|
Waypoint |
getLastPoint()
Gets the last waypoint
|
java.time.Duration |
getMovingTime()
Gets the total amount of time passed between registering the two
waypoints
|
double |
getSpeed()
Gets the speed between the two waypoints
|
public Chunk(Waypoint w1, Waypoint w2, DistanceFunction distanceFunction, double speedThreshold)
public double getDistance()
public double getSpeed()
public java.time.Duration getDuration()
public double getGrade()
public double getAscent()
public double getDescend()
public java.time.Duration getMovingTime()
public double getAvgCadence()
public double getAvgHeartRate()
public double getAvgHeight()
public Waypoint getFirstPoint()
public Waypoint getLastPoint()