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
0321a48a
Commit
0321a48a
authored
Apr 25, 2021
by
IT17165662
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified Probability calculation functions
parent
89e6b31f
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
115 additions
and
24 deletions
+115
-24
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/AintersectionBDependantEvent.java
...nfunction/StepsFragment/AintersectionBDependantEvent.java
+9
-1
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/DepandantProbablityA_BFragment.java
...unction/StepsFragment/DepandantProbablityA_BFragment.java
+12
-0
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/DependantAunionB.java
...r/calculationfunction/StepsFragment/DependantAunionB.java
+6
-1
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/DependantProbablityB_AFragment.java
...unction/StepsFragment/DependantProbablityB_AFragment.java
+13
-0
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/ProbabilityOfAForDependantEventFragment.java
...tepsFragment/ProbabilityOfAForDependantEventFragment.java
+10
-1
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/ProbabilityOfAIndependantEvent.java
...unction/StepsFragment/ProbabilityOfAIndependantEvent.java
+6
-0
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/ProbabilityOfBForDependantEventFragment.java
...tepsFragment/ProbabilityOfBForDependantEventFragment.java
+12
-0
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/ProbabilityOfBIndependantEvent.java
...unction/StepsFragment/ProbabilityOfBIndependantEvent.java
+6
-1
app/src/main/res/layout/fragment_aintersection_b_dependant_event.xml
...n/res/layout/fragment_aintersection_b_dependant_event.xml
+5
-2
app/src/main/res/layout/fragment_depandant_probablity_a__b.xml
...rc/main/res/layout/fragment_depandant_probablity_a__b.xml
+4
-2
app/src/main/res/layout/fragment_dependant_aunion_b.xml
app/src/main/res/layout/fragment_dependant_aunion_b.xml
+4
-2
app/src/main/res/layout/fragment_dependant_probablity_b__a.xml
...rc/main/res/layout/fragment_dependant_probablity_b__a.xml
+4
-2
app/src/main/res/layout/fragment_inde_aunion_b.xml
app/src/main/res/layout/fragment_inde_aunion_b.xml
+4
-2
app/src/main/res/layout/fragment_independant_aand_b.xml
app/src/main/res/layout/fragment_independant_aand_b.xml
+4
-2
app/src/main/res/layout/fragment_probability_of_a_for_dependant_event.xml
.../layout/fragment_probability_of_a_for_dependant_event.xml
+4
-2
app/src/main/res/layout/fragment_probability_of_a_independant_event.xml
...es/layout/fragment_probability_of_a_independant_event.xml
+4
-2
app/src/main/res/layout/fragment_probability_of_b_for_dependant_event.xml
.../layout/fragment_probability_of_b_for_dependant_event.xml
+4
-2
app/src/main/res/layout/fragment_probability_of_b_independant_event.xml
...es/layout/fragment_probability_of_b_independant_event.xml
+4
-2
No files found.
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/AintersectionBDependantEvent.java
View file @
0321a48a
...
...
@@ -59,6 +59,13 @@ public class AintersectionBDependantEvent extends Fragment {
Double
ProbabilityOFAandB
=
bundle
.
getDouble
(
"ProbabilityAandB_value"
);
if
(
ProbabilityOFAorB
<
ProbabilityOFA
||
ProbabilityOFAorB
<
ProbabilityOFB
)
{
mfinalanswer
.
setText
(
"P(A or B) must be greater or equal to P(A) or P(B)"
);
mresult
.
setText
(
"P(A or B) must be greater or equal to P(A) or P(B)"
);
}
mPB
.
setText
(
ProbabilityOFB
.
toString
());
mPA
.
setText
(
ProbabilityOFAandB
.
toString
());
...
...
@@ -73,7 +80,8 @@ public class AintersectionBDependantEvent extends Fragment {
mfinalanswer
.
setMovementMethod
(
new
ScrollingMovementMethod
());
mresult
.
setMovementMethod
(
new
ScrollingMovementMethod
());
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/DepandantProbablityA_BFragment.java
View file @
0321a48a
...
...
@@ -66,6 +66,18 @@ public class DepandantProbablityA_BFragment extends Fragment {
mPB2
.
setText
(
ProbabilityOFB
.
toString
());
if
(
ProbabilityOFB
<
ProbabilityOFAandB
)
{
mfinalanswer
.
setText
(
" P(B) must be greater or equal to P(A and B)"
);
mresult
.
setText
(
" P(B) must be greater or equal to P(A and B)"
);
}
mfinalanswer
.
setMovementMethod
(
new
ScrollingMovementMethod
());
mresult
.
setMovementMethod
(
new
ScrollingMovementMethod
());
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/DependantAunionB.java
View file @
0321a48a
...
...
@@ -69,11 +69,16 @@ public class DependantAunionB extends Fragment {
mPAandB2
.
setText
(
ProbabilityOFAandB
.
toString
());
mPA2
.
setText
(
ProbabilityOFAorB
.
toString
());
if
(
ProbabilityOFA
<
ProbabilityOFAandB
||
ProbabilityOFB
<
ProbabilityOFAandB
)
{
mfinalanswer
.
setText
(
" P(A) or P(B) must be greater or equal to P(A and B)"
);
mresult
.
setText
(
"P(A) or P(B) must be greater or equal to P(A and B)"
);
}
mfinalanswer
.
setMovementMethod
(
new
ScrollingMovementMethod
());
mresult
.
setMovementMethod
(
new
ScrollingMovementMethod
());
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/DependantProbablityB_AFragment.java
View file @
0321a48a
...
...
@@ -67,6 +67,19 @@ public class DependantProbablityB_AFragment extends Fragment {
if
(
ProbabilityOFB
<
ProbabilityOFAandB
)
{
mfinalanswer
.
setText
(
" P(A) must be greater or equal to P(A and B)"
);
mresult
.
setText
(
" P(A) must be greater or equal to P(A and B)"
);
}
mfinalanswer
.
setMovementMethod
(
new
ScrollingMovementMethod
());
mresult
.
setMovementMethod
(
new
ScrollingMovementMethod
());
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/ProbabilityOfAForDependantEventFragment.java
View file @
0321a48a
...
...
@@ -58,9 +58,16 @@ public class ProbabilityOfAForDependantEventFragment extends Fragment {
Double
ProbabilityOFAorB
=
bundle
.
getDouble
(
"ProbabilityAorB_value"
);
Double
ProbabilityOFAandB
=
bundle
.
getDouble
(
"ProbabilityAandB_value"
);
if
(
ProbabilityOFAorB
<
ProbabilityOFB
||
ProbabilityOFAandB
>
ProbabilityOFB
)
{
mfinalanswer
.
setText
(
"P(A or B) must be greater or equal to P(B)"
);
mresult
.
setText
(
"P(A or B) must be greater or equal to P(B)"
);
}
mPB
.
setText
(
ProbabilityOFB
.
toString
());
mPB
.
setText
(
ProbabilityOFB
.
toString
());
mPAandB
.
setText
(
ProbabilityOFAandB
.
toString
());
mPAorB
.
setText
(
ProbabilityOFAorB
.
toString
());
mfinalanswer
.
setText
(
ProbabilityOFA
.
toString
());
...
...
@@ -73,6 +80,8 @@ public class ProbabilityOfAForDependantEventFragment extends Fragment {
mfinalanswer
.
setMovementMethod
(
new
ScrollingMovementMethod
());
mresult
.
setMovementMethod
(
new
ScrollingMovementMethod
());
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/ProbabilityOfAIndependantEvent.java
View file @
0321a48a
...
...
@@ -56,7 +56,11 @@ public class ProbabilityOfAIndependantEvent extends Fragment {
Double
ProbabilityOFAandB
=
bundle
.
getDouble
(
"ProbabilityAandB_value"
);
if
(
ProbabilityOFAandB
>
ProbabilityOFA
)
{
mfinalanswer
.
setText
(
" P(A) must be greater or equal to P(A and B)"
);
mresult
.
setText
(
"P(A) must be greater or equal to P(A and B)"
);
}
mPB
.
setText
(
ProbabilityOFB
.
toString
());
mPAandB
.
setText
(
ProbabilityOFAandB
.
toString
());
mfinalanswer
.
setText
(
ProbabilityOFA
.
toString
());
...
...
@@ -64,6 +68,8 @@ public class ProbabilityOfAIndependantEvent extends Fragment {
mPB2
.
setText
(
ProbabilityOFB
.
toString
());
mPAandB2
.
setText
(
ProbabilityOFAandB
.
toString
());
mfinalanswer
.
setMovementMethod
(
new
ScrollingMovementMethod
());
mresult
.
setMovementMethod
(
new
ScrollingMovementMethod
());
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/ProbabilityOfBForDependantEventFragment.java
View file @
0321a48a
...
...
@@ -60,6 +60,14 @@ public class ProbabilityOfBForDependantEventFragment extends Fragment {
if
(
ProbabilityOFAorB
<
ProbabilityOFA
||
ProbabilityOFAandB
>
ProbabilityOFA
)
{
mfinalanswer
.
setText
(
"P(A or B) must be greater or equal to P(A)"
);
mresult
.
setText
(
"P(A or B) must be greater or equal to P(A)"
);
}
mPB
.
setText
(
ProbabilityOFB
.
toString
());
mPAandB
.
setText
(
ProbabilityOFAandB
.
toString
());
mPAorB
.
setText
(
ProbabilityOFAorB
.
toString
());
...
...
@@ -69,6 +77,10 @@ public class ProbabilityOfBForDependantEventFragment extends Fragment {
mPAandB2
.
setText
(
ProbabilityOFAandB
.
toString
());
mPAorB2
.
setText
(
ProbabilityOFAorB
.
toString
());
mfinalanswer
.
setMovementMethod
(
new
ScrollingMovementMethod
());
mresult
.
setMovementMethod
(
new
ScrollingMovementMethod
());
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/ProbabilityOfBIndependantEvent.java
View file @
0321a48a
...
...
@@ -56,7 +56,11 @@ public class ProbabilityOfBIndependantEvent extends Fragment {
Double
ProbabilityOFAandB
=
bundle
.
getDouble
(
"ProbabilityAandB_value"
);
if
(
ProbabilityOFAandB
>
ProbabilityOFB
)
{
mfinalanswer
.
setText
(
" P(B) must be greater or equal to P(A and B)"
);
mresult
.
setText
(
"P(B) must be greater or equal to P(A and B)"
);
}
mPB
.
setText
(
ProbabilityOFB
.
toString
());
mPAandB
.
setText
(
ProbabilityOFAandB
.
toString
());
mfinalanswer
.
setText
(
ProbabilityOFA
.
toString
());
...
...
@@ -73,7 +77,8 @@ public class ProbabilityOfBIndependantEvent extends Fragment {
mfinalanswer
.
setMovementMethod
(
new
ScrollingMovementMethod
());
mresult
.
setMovementMethod
(
new
ScrollingMovementMethod
());
...
...
app/src/main/res/layout/fragment_aintersection_b_dependant_event.xml
View file @
0321a48a
...
...
@@ -336,7 +336,9 @@
android:layout_marginBottom=
"458dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_pbs"
...
...
@@ -400,7 +402,8 @@
android:layout_marginBottom=
"288dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_step3"
...
...
app/src/main/res/layout/fragment_depandant_probablity_a__b.xml
View file @
0321a48a
...
...
@@ -277,7 +277,8 @@
android:layout_marginBottom=
"458dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_pbs"
...
...
@@ -316,7 +317,8 @@
android:layout_marginBottom=
"288dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_step3"
...
...
app/src/main/res/layout/fragment_dependant_aunion_b.xml
View file @
0321a48a
...
...
@@ -337,7 +337,8 @@
android:layout_marginBottom=
"458dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_pbs"
...
...
@@ -401,7 +402,8 @@
android:layout_marginBottom=
"288dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_step3"
...
...
app/src/main/res/layout/fragment_dependant_probablity_b__a.xml
View file @
0321a48a
...
...
@@ -277,7 +277,8 @@
android:layout_marginBottom=
"458dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_pbs"
...
...
@@ -316,7 +317,8 @@
android:layout_marginBottom=
"288dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_step3"
...
...
app/src/main/res/layout/fragment_inde_aunion_b.xml
View file @
0321a48a
...
...
@@ -354,7 +354,8 @@
android:layout_marginBottom=
"288dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_step3"
...
...
@@ -593,7 +594,8 @@
android:layout_marginBottom=
"458dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/paandbb"
style=
"@style/Base.TextAppearance.AppCompat.Large"
...
...
app/src/main/res/layout/fragment_independant_aand_b.xml
View file @
0321a48a
...
...
@@ -278,7 +278,8 @@
android:layout_marginBottom=
"458dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_pbs"
...
...
@@ -317,7 +318,8 @@
android:layout_marginBottom=
"288dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_step3"
...
...
app/src/main/res/layout/fragment_probability_of_a_for_dependant_event.xml
View file @
0321a48a
...
...
@@ -336,7 +336,8 @@
android:layout_marginBottom=
"458dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_pbs"
...
...
@@ -400,7 +401,8 @@
android:layout_marginBottom=
"288dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_step3"
...
...
app/src/main/res/layout/fragment_probability_of_a_independant_event.xml
View file @
0321a48a
...
...
@@ -278,7 +278,8 @@
android:layout_marginBottom=
"458dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_pbs"
...
...
@@ -317,7 +318,8 @@
android:layout_marginBottom=
"288dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_step3"
...
...
app/src/main/res/layout/fragment_probability_of_b_for_dependant_event.xml
View file @
0321a48a
...
...
@@ -335,7 +335,8 @@
android:layout_marginBottom=
"458dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_pbs"
...
...
@@ -399,7 +400,8 @@
android:layout_marginBottom=
"288dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_step3"
...
...
app/src/main/res/layout/fragment_probability_of_b_independant_event.xml
View file @
0321a48a
...
...
@@ -277,7 +277,8 @@
android:layout_marginBottom=
"458dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_pbs"
...
...
@@ -316,7 +317,8 @@
android:layout_marginBottom=
"288dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:scrollbars=
"vertical"
/>
<TextView
android:id=
"@+id/textview_step3"
...
...
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