Skip to content
Snippets Groups Projects
Commit ca270a48 authored by terry-norbraten's avatar terry-norbraten
Browse files

putall in const

parent c5e5bf97
No related branches found
No related tags found
No related merge requests found
...@@ -31,9 +31,8 @@ public class X3dSlidingWindowCompression { ...@@ -31,9 +31,8 @@ public class X3dSlidingWindowCompression {
System.out.println("DISTools.Regression.doRegression()"); System.out.println("DISTools.Regression.doRegression()");
//Check whether points could be deleted to compress the stream //Check whether points could be deleted to compress the stream
//https://www.crashkurs-statistik.de/einfache-lineare-regression/ //https://www.crashkurs-statistik.de/einfache-lineare-regression/
TreeMap<Double, X3dCoordinates> streamMap = new TreeMap<>(); TreeMap<Double, X3dCoordinates> streamMap = new TreeMap<>(localMap);
//Copy LinkedHashMap into TreeMap to be able to pull the first element. //Copy LinkedHashMap into TreeMap to be able to pull the first element.
streamMap.putAll(localMap);
Map<Double, X3dCoordinates> returnMap = new TreeMap<>(); Map<Double, X3dCoordinates> returnMap = new TreeMap<>();
//TreeMap of slidingWindows will store all of the points that are currently processed //TreeMap of slidingWindows will store all of the points that are currently processed
//use .pullFirstEntry() to get rid of the points at the beginning. //use .pullFirstEntry() to get rid of the points at the beginning.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment