X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fdata%2FRangeStats.java;fp=tim%2Fprune%2Fdata%2FRangeStats.java;h=13ecaade10d4e6a8d0eccc87a383762ae399cc00;hp=37d061bf66cb3318c68a41829f1f286c2a855cd5;hb=2d8cb72e84d5cc1089ce77baf1e34ea3ea2f8465;hpb=1a735a99408fd3b0c5ac4fe7b2fdbdbb23d38f40 diff --git a/tim/prune/data/RangeStats.java b/tim/prune/data/RangeStats.java index 37d061b..13ecaad 100644 --- a/tim/prune/data/RangeStats.java +++ b/tim/prune/data/RangeStats.java @@ -21,7 +21,7 @@ public class RangeStats private boolean _timesIncomplete = false; private boolean _timesOutOfSequence = false; private double _totalDistanceRads = 0.0, _movingDistanceRads = 0.0; - // Note, maximum speed is not calculated here, use the SpeedData method instead + // Note, maximum speed is not calculated here, use the SpeedData class instead private static final double STEEP_ANGLE = 0.15; // gradient steeper than 15% counts as steep @@ -50,7 +50,8 @@ public class RangeStats */ private boolean calculateStats(Track inTrack, int inStartIndex, int inEndIndex) { - _startIndex = inStartIndex; _endIndex = inEndIndex; + _startIndex = inStartIndex; + _endIndex = inEndIndex; _numPoints = inEndIndex - inStartIndex + 1; _totalAltitudeRange = new AltitudeRange(); _movingAltitudeRange = new AltitudeRange(); @@ -70,7 +71,9 @@ public class RangeStats // ignore all waypoints if (p.isWaypoint()) continue; - if (p.getSegmentStart()) {_numSegments++;} + if (p.getSegmentStart()) { + _numSegments++; + } // Get the distance to the previous track point if (prevPoint != null) {