Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
ca270a48
Commit
ca270a48
authored
5 years ago
by
terry-norbraten
Browse files
Options
Downloads
Patches
Plain Diff
putall in const
parent
c5e5bf97
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/edu/nps/moves/dis7/utilities/stream/X3dSlidingWindowCompression.java
+1
-2
1 addition, 2 deletions
...es/dis7/utilities/stream/X3dSlidingWindowCompression.java
with
1 addition
and
2 deletions
src/edu/nps/moves/dis7/utilities/stream/X3dSlidingWindowCompression.java
+
1
−
2
View file @
ca270a48
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment