Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
java_median_filter
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GPSE
4A
java_median_filter
Commits
6d50a951
Commit
6d50a951
authored
Sep 13, 2021
by
Weber Rodolphe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typos
parent
5aedfa72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
App.java
src/App.java
+5
-3
No files found.
src/App.java
View file @
6d50a951
...
...
@@ -10,7 +10,7 @@ class MyTimer{
void
toc
(){
long
end
=
System
.
nanoTime
();
long
time
=
end
-
begin
;
System
.
out
.
println
(
"Elapsed Time: "
+
time
/
1000
+
"
m
s."
);
System
.
out
.
println
(
"Elapsed Time: "
+
time
/
1000
+
"
µ
s."
);
}
}
...
...
@@ -45,9 +45,11 @@ public class App {
MyTimer
timer
=
new
MyTimer
();
int
[]
filteredData
=
new
int
[
data
.
length
];
// data=filteredData => data & filteredData will point the same object in Object space
System
.
arraycopy
(
data
,
0
,
filteredData
,
0
,
data
.
length
);
// => data & filteredData will point the 2 similar objects in Object space
// filteredData=data; => data & filteredData will point the same object in Object space
System
.
arraycopy
(
data
,
0
,
filteredData
,
0
,
data
.
length
);
// => data & filteredData will point the 2 different objects in Object space
timer
.
tic
();
Arrays
.
sort
(
filteredData
);
timer
.
toc
();
PrintData
(
data
,
filteredData
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment