Fixing DouglasPeuckerAlgorithm Typo

This commit is contained in:
Fuzzlemann 2017-07-28 19:37:25 +02:00
parent 4f63640c97
commit ce8c6bb169
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ package main.java.com.djrapitops.plan.ui.html.graphs;
import com.djrapitops.plugin.api.TimeAmount; import com.djrapitops.plugin.api.TimeAmount;
import com.djrapitops.plugin.utilities.Verify; import com.djrapitops.plugin.utilities.Verify;
import main.java.com.djrapitops.plan.utilities.analysis.DouglasPeckerAlgorithm; import main.java.com.djrapitops.plan.utilities.analysis.DouglasPeuckerAlgorithm;
import main.java.com.djrapitops.plan.utilities.analysis.Point; import main.java.com.djrapitops.plan.utilities.analysis.Point;
import main.java.com.djrapitops.plan.utilities.comparators.PointComparator; import main.java.com.djrapitops.plan.utilities.comparators.PointComparator;
@ -32,7 +32,7 @@ public class ScatterGraphCreator {
arrayBuilder.append("["); arrayBuilder.append("[");
if (reducePoints) { if (reducePoints) {
points = DouglasPeckerAlgorithm.reducePoints(points, 0); points = DouglasPeuckerAlgorithm.reducePoints(points, 0);
} }
if (reduceGapTriangles) { if (reduceGapTriangles) {

View File

@ -5,13 +5,13 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
/** /**
* Ramer-Douglas-Pecker Point Reduction Algorithm for reducing points from * Ramer-Douglas-Peucker Point Reduction Algorithm for reducing points from
* graphs. * graphs.
* *
* @author Rsl1122 * @author Rsl1122
* @since 3.5.2 * @since 3.5.2
*/ */
public class DouglasPeckerAlgorithm { public class DouglasPeuckerAlgorithm {
public static List<Point> reducePoints(List<Point> points, double epsilon) { public static List<Point> reducePoints(List<Point> points, double epsilon) {
if (points.isEmpty()) { if (points.isEmpty()) {