Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
20_21-J03
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
20_21-J03
20_21-J03
Commits
ce1b9c39
Commit
ce1b9c39
authored
Jan 25, 2021
by
IT17165662
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed errors
parent
c2d3df3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/DesStatCalculation.java
...erandeducator/calculationfunction/DesStatCalculation.java
+4
-2
No files found.
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/DesStatCalculation.java
View file @
ce1b9c39
...
...
@@ -98,7 +98,6 @@ double firstQuartile;
}
//find third quartile = 3/4(n+1)th element
double
thirdQuartile
;
public
ArrayList
<
Object
>
ThirdQuartile
(
String
[]
a
){
...
...
@@ -157,16 +156,19 @@ double firstQuartile;
}
//--------------Third Quartile--------------------
//size of the arraylist
arraySize
=
invalue
.
length
;
// add 1 to the array size
arraySize
=
arraySize
+
1
;
//divide it by 4
position
=
arraySize
*
3
/
4.00
;
roundofPosition
=
(
int
)
Math
.
round
(
position
);
roundofPosition
=
(
int
)
Math
.
round
(
position
);
// we get 3 rd qua position
//match the position with array index
for
(
int
i
=
0
;
i
<
invalue
.
length
;
i
++){
if
(
i
==
roundofPosition
-
1
){
thirdQuartile
=
invalue
[
i
];
System
.
out
.
println
(
"iqrthirdquartile:"
+
thirdQuartile
);
break
;
}
...
...
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