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
6a30b078
Commit
6a30b078
authored
May 24, 2021
by
IT17165662
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create function for calculating probability A union B in independent event and related interfaces
parent
a90658f5
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
1642 additions
and
98 deletions
+1642
-98
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/NormalDistributionCalc.java
...deducator/calculationfunction/NormalDistributionCalc.java
+1
-1
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/ProbabilityCalc.java
...lyserandeducator/calculationfunction/ProbabilityCalc.java
+64
-2
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/ProbablilityCalculation.java
...educator/calculationfunction/ProbablilityCalculation.java
+43
-10
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/TypeThreeIndeAUnionBFragment.java
...nfunction/StepsFragment/TypeThreeIndeAUnionBFragment.java
+111
-0
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/TypeTwoA_Union_B_IndeFragment.java
...function/StepsFragment/TypeTwoA_Union_B_IndeFragment.java
+114
-0
app/src/main/res/layout/fragment_above_x.xml
app/src/main/res/layout/fragment_above_x.xml
+25
-24
app/src/main/res/layout/fragment_below_x.xml
app/src/main/res/layout/fragment_below_x.xml
+26
-24
app/src/main/res/layout/fragment_between.xml
app/src/main/res/layout/fragment_between.xml
+27
-37
app/src/main/res/layout/fragment_type_three_inde_a_union_b.xml
...rc/main/res/layout/fragment_type_three_inde_a_union_b.xml
+615
-0
app/src/main/res/layout/fragment_type_two_a__union__b__inde.xml
...c/main/res/layout/fragment_type_two_a__union__b__inde.xml
+615
-0
app/src/main/res/values/strings.xml
app/src/main/res/values/strings.xml
+1
-0
No files found.
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/NormalDistributionCalc.java
View file @
6a30b078
...
...
@@ -203,7 +203,7 @@ public class NormalDistributionCalc {
list
.
add
(
5
,
x2
);
list
.
add
(
6
,
finalvalue
);
list
.
add
(
7
,
zdivide1
);
list
.
add
(
8
,
zdivide
1
);
list
.
add
(
8
,
zdivide
2
);
System
.
out
.
println
(
"NormalDistribution Type 1:"
+
finalvalue
);
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/ProbabilityCalc.java
View file @
6a30b078
...
...
@@ -101,7 +101,7 @@ public ArrayList<Object> IndependantProbabilityA(double a,double b) {
}
//---------------------------------------------------------------------------------------
//Type 5 - Find Probability A
and
B for Dependant event
//Type 5 - Find Probability A
uniion
B for Dependant event
// a = Probability of A
//b=Probability of B
//c=Probability of P(A and B) or A intersection B
...
...
@@ -185,7 +185,7 @@ public ArrayList<Object> DepProA_Union_B(double a,double b,double c) {
public
ArrayList
<
Object
>
Dep_ProbabilityB_A
(
double
a
,
double
b
)
{
ArrayList
<
Object
>
list
=
new
ArrayList
<>();
//P(
A | B
)
//P(
B | A
)
double
c
;
//To find P(A | B) we use an multiplication rule
...
...
@@ -253,5 +253,67 @@ public ArrayList<Object> DepProA_Union_B(double a,double b,double c) {
return
list
;
}
//------------------------------------------------------------------------------------------------------------------------------------------------------
//Type- 11 Find P(A or B) independant if question provide P(B),P(A and B)
//a=P(A and B)
//b=P(B)
public
ArrayList
<
Object
>
Independant_A_Union_B_Type2
(
double
a
,
double
b
)
{
ArrayList
<
Object
>
list
=
new
ArrayList
<>();
//P(A)
double
c
;
//To find P(A ) we use an multiplication rule ---> P(A)=P(A and B) /P(B)
c
=
a
/
b
;
//P(A or B)
double
d
;
//To find P(A or B) we use an addtional rule
d
=
c
+
b
-
a
;
double
roundedFloat
=
(
double
)
Math
.
round
(
d
*
10000.0
)
/
10000.0
;
list
.
add
(
0
,
b
);
list
.
add
(
1
,
a
);
list
.
add
(
2
,
roundedFloat
);
list
.
add
(
3
,
c
);
System
.
out
.
println
(
"P(A or B) independant type 2:"
+
roundedFloat
);
return
list
;
}
//------------------------------------------------------------------------------------------------------------------------------------------------------
//Type- 12 Find P(A or B) independant if question provide P(A),P(A and B)
//a=P(A and B)
//b=P(A)
public
ArrayList
<
Object
>
Independant_A_Union_B_Type3
(
double
a
,
double
b
)
{
ArrayList
<
Object
>
list
=
new
ArrayList
<>();
//P(B)
double
c
;
//To find P(B ) we use an multiplication rule
c
=
a
/
b
;
//P(A or B)
double
d
;
//To find P(A or B) we use an addtional rule
d
=
c
+
b
-
a
;
double
roundedFloat
=
(
double
)
Math
.
round
(
d
*
10000.0
)
/
10000.0
;
list
.
add
(
0
,
b
);
list
.
add
(
1
,
a
);
list
.
add
(
2
,
roundedFloat
);
list
.
add
(
3
,
c
);
System
.
out
.
println
(
"P(A or B) independant type 1:"
+
roundedFloat
);
return
list
;
}
}
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/ProbablilityCalculation.java
View file @
6a30b078
...
...
@@ -18,6 +18,8 @@ import com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunc
import
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment.ProbabilityOfAIndependantEvent
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment.ProbabilityOfBForDependantEventFragment
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment.ProbabilityOfBIndependantEvent
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment.TypeThreeIndeAUnionBFragment
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment.TypeTwoA_Union_B_IndeFragment
;
import
java.util.ArrayList
;
...
...
@@ -62,6 +64,7 @@ public class ProbablilityCalculation extends AppCompatActivity {
ArrayList
<
Object
>
InDepProbabilityofAorBlist
=
new
ArrayList
<
Object
>();
ArrayList
<
Object
>
DepProbabilityofA_Blist
=
new
ArrayList
<
Object
>();
ArrayList
<
Object
>
DepProbabilityofB_Alist
=
new
ArrayList
<
Object
>();
ArrayList
<
Object
>
IndDepProbabilityofAUnionBType2list
=
new
ArrayList
<
Object
>();
...
...
@@ -80,6 +83,8 @@ public class ProbablilityCalculation extends AppCompatActivity {
DepProbabilityofA_Blist
=
probabilityCalc
.
Dep_ProbabilityA_B
(
ProbabilityvalueAandB
,
ProbabilityvalueB
);
DepProbabilityofB_Alist
=
probabilityCalc
.
Dep_ProbabilityB_A
(
ProbabilityvalueAandB
,
ProbabilityvalueA
);
IndDepProbabilityofAUnionBType2list
=
probabilityCalc
.
Independant_A_Union_B_Type2
(
ProbabilityvalueAandB
,
ProbabilityvalueB
);
des_calculation_type
=
intent
.
getStringExtra
(
"des_calculation_type"
);
Probability_Type
=
intent
.
getStringExtra
(
"des_calculation_type"
);
...
...
@@ -196,17 +201,45 @@ public class ProbablilityCalculation extends AppCompatActivity {
case
"P(A or B)"
:
bundle
.
putDouble
(
"ProbabilityB_value"
,
(
Double
)
InDepProbabilityofAorBlist
.
get
(
0
));
bundle
.
putDouble
(
"ProbabilityAandB_value"
,
(
Double
)
InDepProbabilityofAorBlist
.
get
(
3
));
bundle
.
putDouble
(
"ProbabilityA_value"
,
(
Double
)
InDepProbabilityofAorBlist
.
get
(
1
));
bundle
.
putDouble
(
"ProbabilityAorB_value"
,
(
Double
)
InDepProbabilityofAorBlist
.
get
(
2
));
if
(
ProbabilityvalueA
==
null
){
bundle
.
putDouble
(
"ProbabilityB_value"
,
(
Double
)
IndDepProbabilityofAUnionBType2list
.
get
(
0
));
bundle
.
putDouble
(
"ProbabilityA_value"
,
(
Double
)
IndDepProbabilityofAUnionBType2list
.
get
(
3
));
bundle
.
putDouble
(
"ProbabilityAandB_value"
,
(
Double
)
IndDepProbabilityofAUnionBType2list
.
get
(
1
));
bundle
.
putDouble
(
"ProbabilityAorB_value"
,
(
Double
)
IndDepProbabilityofAUnionBType2list
.
get
(
2
));
TypeTwoA_Union_B_IndeFragment
typeTwoA_union_b_indeFragment
=
new
TypeTwoA_Union_B_IndeFragment
();
typeTwoA_union_b_indeFragment
.
setArguments
(
bundle
);
fragmentTransaction
.
add
(
R
.
id
.
fragment_container
,
typeTwoA_union_b_indeFragment
);
fragmentTransaction
.
commit
();
break
;
}
else
if
(
ProbabilityvalueB
==
null
){
bundle
.
putDouble
(
"ProbabilityA_value"
,
(
Double
)
InDepProbabilityofAorBlist
.
get
(
0
));
bundle
.
putDouble
(
"ProbabilityB_value"
,
(
Double
)
InDepProbabilityofAorBlist
.
get
(
3
));
bundle
.
putDouble
(
"ProbabilityAandB_value"
,
(
Double
)
InDepProbabilityofAorBlist
.
get
(
1
));
bundle
.
putDouble
(
"ProbabilityAorB_value"
,
(
Double
)
InDepProbabilityofAorBlist
.
get
(
2
));
TypeThreeIndeAUnionBFragment
typeThreeIndeAUnionBFragment
=
new
TypeThreeIndeAUnionBFragment
();
typeThreeIndeAUnionBFragment
.
setArguments
(
bundle
);
fragmentTransaction
.
add
(
R
.
id
.
fragment_container
,
typeThreeIndeAUnionBFragment
);
fragmentTransaction
.
commit
();
break
;
}
else
bundle
.
putDouble
(
"ProbabilityB_value"
,
(
Double
)
InDepProbabilityofAorBlist
.
get
(
0
));
bundle
.
putDouble
(
"ProbabilityAandB_value"
,
(
Double
)
InDepProbabilityofAorBlist
.
get
(
3
));
bundle
.
putDouble
(
"ProbabilityA_value"
,
(
Double
)
InDepProbabilityofAorBlist
.
get
(
1
));
bundle
.
putDouble
(
"ProbabilityAorB_value"
,
(
Double
)
InDepProbabilityofAorBlist
.
get
(
2
));
IndeAunionBFragment
indeAunionBFragment
=
new
IndeAunionBFragment
();
indeAunionBFragment
.
setArguments
(
bundle
);
fragmentTransaction
.
add
(
R
.
id
.
fragment_container
,
indeAunionBFragment
);
fragmentTransaction
.
commit
();
break
;
IndeAunionBFragment
indeAunionBFragment
=
new
IndeAunionBFragment
();
indeAunionBFragment
.
setArguments
(
bundle
);
fragmentTransaction
.
add
(
R
.
id
.
fragment_container
,
indeAunionBFragment
);
fragmentTransaction
.
commit
();
break
;
case
"P(B)"
:
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/TypeThreeIndeAUnionBFragment.java
0 → 100644
View file @
6a30b078
package
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment
;
import
android.os.Bundle
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.Nullable
;
import
androidx.fragment.app.Fragment
;
import
android.text.method.ScrollingMovementMethod
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.animation.Animation
;
import
android.view.animation.AnimationUtils
;
import
android.widget.TextView
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.R
;
import
java.util.Arrays
;
public
class
TypeThreeIndeAUnionBFragment
extends
Fragment
{
TextView
mPB
;
TextView
mPA
;
TextView
mresult
;
TextView
mPB2
;
TextView
mPA2
;
TextView
mPA3
;
TextView
mPaandB
;
TextView
mPaandb2
;
TextView
mPaandb3
;
TextView
mtextView15
;
TextView
mtextView16
;
Animation
blink_anim
;
Animation
move_anim
;
public
TypeThreeIndeAUnionBFragment
(){
}
@Nullable
@Override
public
View
onCreateView
(
@NonNull
LayoutInflater
inflater
,
@Nullable
ViewGroup
container
,
@Nullable
Bundle
savedInstanceState
)
{
View
view
=
inflater
.
inflate
(
R
.
layout
.
fragment_type_three_inde_a_union_b
,
container
,
false
);
mPA
=
view
.
findViewById
(
R
.
id
.
textview_PB
);
mPaandB
=
view
.
findViewById
(
R
.
id
.
textview_PA
);
mPB
=
view
.
findViewById
(
R
.
id
.
pb3
);
mresult
=
view
.
findViewById
(
R
.
id
.
finalanswers
);
mPA2
=
view
.
findViewById
(
R
.
id
.
textview_pb2
);
mPaandb2
=
view
.
findViewById
(
R
.
id
.
textview_pa2
);
mPB2
=
view
.
findViewById
(
R
.
id
.
paandbs
);
mPA3
=
view
.
findViewById
(
R
.
id
.
pa3
);
mPaandb3
=
view
.
findViewById
(
R
.
id
.
paandbb
);
mtextView15
=
view
.
findViewById
(
R
.
id
.
textView15
);
mtextView16
=
view
.
findViewById
(
R
.
id
.
textviw_finalvue
);
blink_anim
=
AnimationUtils
.
loadAnimation
(
getContext
(),
R
.
anim
.
blinkeffect
);
// mtextView15.startAnimation(blink_anim);
mtextView16
.
startAnimation
(
blink_anim
);
move_anim
=
AnimationUtils
.
loadAnimation
(
getContext
(),
R
.
anim
.
moveanimation
);
mtextView15
.
startAnimation
(
move_anim
);
Bundle
bundle
=
getArguments
();
//Returns the value associated with the given key
Double
ProbabilityOFA
=
bundle
.
getDouble
(
"ProbabilityA_value"
);
Double
ProbabilityOFB
=
bundle
.
getDouble
(
"ProbabilityB_value"
);
Double
ProbabilityOFAandB
=
bundle
.
getDouble
(
"ProbabilityAandB_value"
);
Double
ProbabilityOFAorB
=
bundle
.
getDouble
(
"ProbabilityAorB_value"
);
mPB
.
setText
(
ProbabilityOFB
.
toString
());
mPA
.
setText
(
ProbabilityOFA
.
toString
());
mresult
.
setText
(
ProbabilityOFAorB
.
toString
());
mPB2
.
setText
(
ProbabilityOFB
.
toString
());
mPA2
.
setText
(
ProbabilityOFA
.
toString
());
mPA3
.
setText
(
ProbabilityOFA
.
toString
());
mPaandB
.
setText
(
ProbabilityOFAandB
.
toString
());
mPaandb2
.
setText
(
ProbabilityOFAandB
.
toString
());
mPaandb3
.
setText
(
ProbabilityOFAandB
.
toString
());
return
view
;
}
}
\ No newline at end of file
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/TypeTwoA_Union_B_IndeFragment.java
0 → 100644
View file @
6a30b078
package
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment
;
import
android.os.Bundle
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.Nullable
;
import
androidx.fragment.app.Fragment
;
import
android.text.method.ScrollingMovementMethod
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.animation.Animation
;
import
android.view.animation.AnimationUtils
;
import
android.widget.TextView
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.R
;
import
java.util.Arrays
;
public
class
TypeTwoA_Union_B_IndeFragment
extends
Fragment
{
TextView
mPB
;
TextView
mPA
;
TextView
mfinalanswer
;
TextView
mresult
;
TextView
mPB2
;
TextView
mPA2
;
TextView
mPaandB
;
TextView
mPaandb2
;
TextView
mPB3
;
TextView
mPaandb3
;
TextView
mtextView15
;
TextView
mtextView16
;
Animation
blink_anim
;
Animation
move_anim
;
public
TypeTwoA_Union_B_IndeFragment
(){
}
@Nullable
@Override
public
View
onCreateView
(
@NonNull
LayoutInflater
inflater
,
@Nullable
ViewGroup
container
,
@Nullable
Bundle
savedInstanceState
)
{
View
view
=
inflater
.
inflate
(
R
.
layout
.
fragment_type_two_a__union__b__inde
,
container
,
false
);
mPB
=
view
.
findViewById
(
R
.
id
.
textview_PB
);
mPaandB
=
view
.
findViewById
(
R
.
id
.
textview_PA
);
mfinalanswer
=
view
.
findViewById
(
R
.
id
.
textview_answer
);
mresult
=
view
.
findViewById
(
R
.
id
.
finalanswers
);
mPB2
=
view
.
findViewById
(
R
.
id
.
textview_pb2
);
mPaandb2
=
view
.
findViewById
(
R
.
id
.
textview_pa2
);
mPA
=
view
.
findViewById
(
R
.
id
.
paandbb
);
mPA2
=
view
.
findViewById
(
R
.
id
.
paandbs
);
mPB3
=
view
.
findViewById
(
R
.
id
.
pb3
);
mPaandb3
=
view
.
findViewById
(
R
.
id
.
pa3
);
mtextView15
=
view
.
findViewById
(
R
.
id
.
textView15
);
mtextView16
=
view
.
findViewById
(
R
.
id
.
textviw_finalvue
);
blink_anim
=
AnimationUtils
.
loadAnimation
(
getContext
(),
R
.
anim
.
blinkeffect
);
// mtextView15.startAnimation(blink_anim);
mtextView16
.
startAnimation
(
blink_anim
);
move_anim
=
AnimationUtils
.
loadAnimation
(
getContext
(),
R
.
anim
.
moveanimation
);
mtextView15
.
startAnimation
(
move_anim
);
Bundle
bundle
=
getArguments
();
//Returns the value associated with the given key
Double
ProbabilityOFA
=
bundle
.
getDouble
(
"ProbabilityA_value"
);
Double
ProbabilityOFB
=
bundle
.
getDouble
(
"ProbabilityB_value"
);
Double
ProbabilityOFAandB
=
bundle
.
getDouble
(
"ProbabilityAandB_value"
);
Double
ProbabilityOFAorB
=
bundle
.
getDouble
(
"ProbabilityAorB_value"
);
mPB
.
setText
(
ProbabilityOFB
.
toString
());
mPA
.
setText
(
ProbabilityOFA
.
toString
());
mfinalanswer
.
setText
(
ProbabilityOFAorB
.
toString
());
mresult
.
setText
(
ProbabilityOFAorB
.
toString
());
mPB2
.
setText
(
ProbabilityOFB
.
toString
());
mPA2
.
setText
(
ProbabilityOFA
.
toString
());
mPaandB
.
setText
(
ProbabilityOFAandB
.
toString
());
mPaandb2
.
setText
(
ProbabilityOFAandB
.
toString
());
mPB3
.
setText
(
ProbabilityOFB
.
toString
());
mPaandb3
.
setText
(
ProbabilityOFAandB
.
toString
());
return
view
;
}
}
\ No newline at end of file
app/src/main/res/layout/fragment_above_x.xml
View file @
6a30b078
...
...
@@ -3,7 +3,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"790dp"
android:background=
"
#FED
"
android:background=
"
@drawable/cardcutbackground
"
tools:context=
".calculationfunction.StepsFragment.AboveXFragment"
>
<TextView
...
...
@@ -58,7 +58,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"Mean(μ)"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -71,7 +70,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"SD (σ)"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/Textview_pOrb"
...
...
@@ -83,7 +81,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"P(X >"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -96,20 +93,18 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
") = P ( X - μ > "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/TextvipOrb"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"
wrap_content
"
android:layout_width=
"
10dp
"
android:layout_height=
"41dp"
android:layout_marginStart=
"290dp"
android:layout_marginTop=
"260dp"
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"-"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/TextvipO"
...
...
@@ -121,7 +116,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
")"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
...
...
@@ -148,7 +142,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"="
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/Textview_equala"
...
...
@@ -160,7 +153,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"="
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -174,21 +166,19 @@
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
"P ( [ X - μ ] / σ > [ "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/textview_st2"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"
74
dp"
android:layout_width=
"
40
dp"
android:layout_height=
"43dp"
android:layout_marginStart=
"10dp"
android:layout_marginTop=
"400dp"
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
"Z = "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -201,7 +191,6 @@
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
"- "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -214,7 +203,6 @@
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
" ] / "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -227,7 +215,6 @@
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
")"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -240,7 +227,6 @@
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
") = "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -281,6 +267,20 @@
android:layout_marginBottom=
"458dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textColor=
"#008000"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/textviw_finalvue"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"165dp"
android:layout_height=
"124dp"
android:layout_marginStart=
"220dp"
android:layout_marginTop=
"600dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:background=
"@drawable/emoji1"
android:textColor=
"#008000"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
...
...
@@ -396,22 +396,23 @@
android:layout_marginEnd=
"176dp"
android:layout_marginBottom=
"96dp"
android:text=
"Use the standard normal table and find the normal distribution of X"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/textView15"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"
313
dp"
android:layout_height=
"
41
dp"
android:layout_marginStart=
"
2
0dp"
android:layout_marginTop=
"
2
0dp"
android:layout_width=
"
165
dp"
android:layout_height=
"
67
dp"
android:layout_marginStart=
"0dp"
android:layout_marginTop=
"
1
0dp"
android:layout_marginEnd=
"309dp"
android:layout_marginBottom=
"586dp"
android:text=
"Result - Above P(X)"
android:background=
"@drawable/dd56"
android:fontFamily=
"cursive"
android:text=
"Above P(X)"
android:textAlignment=
"center"
android:textColor=
"@color/purple_500"
android:textSize=
"
30
sp"
android:textSize=
"
25
sp"
android:textStyle=
"bold"
/>
...
...
app/src/main/res/layout/fragment_below_x.xml
View file @
6a30b078
...
...
@@ -3,7 +3,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"790dp"
android:background=
"
#FED
"
android:background=
"
@drawable/cardcutbackground
"
tools:context=
".calculationfunction.StepsFragment.BelowXFragment"
>
<TextView
...
...
@@ -58,7 +58,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"Mean(μ)"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -71,7 +70,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"SD (σ)"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/Textview_pOrb"
...
...
@@ -83,7 +81,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"@string/p_x"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -96,20 +93,18 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"@string/normaldisequation"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/TextvipOrb"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"
wrap_content
"
android:layout_height=
"
41
dp"
android:layout_width=
"
10dp
"
android:layout_height=
"
38
dp"
android:layout_marginStart=
"290dp"
android:layout_marginTop=
"260dp"
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"-"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/TextvipO"
...
...
@@ -121,7 +116,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
")"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
...
...
@@ -148,7 +142,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"="
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/Textview_equala"
...
...
@@ -160,7 +153,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"="
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -174,21 +166,19 @@
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
"@string/eq1"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/textview_st2"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"
74dp
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"43dp"
android:layout_marginStart=
"10dp"
android:layout_marginTop=
"400dp"
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
"Z = "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -214,7 +204,6 @@
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
" ] / "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -227,7 +216,6 @@
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
")"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -240,7 +228,6 @@
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
") = "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -281,6 +268,20 @@
android:layout_marginBottom=
"458dp"
android:background=
"@drawable/border"
android:textSize=
"17sp"
android:textColor=
"#008000"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/textviw_finalvue"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"165dp"
android:layout_height=
"124dp"
android:layout_marginStart=
"220dp"
android:layout_marginTop=
"620dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:background=
"@drawable/emoji1"
android:textColor=
"#008000"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
...
...
@@ -396,22 +397,23 @@
android:layout_marginEnd=
"176dp"
android:layout_marginBottom=
"96dp"
android:text=
"Use the standard normal table and find the normal distribution of X"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/textView15"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"
313
dp"
android:layout_height=
"
41
dp"
android:layout_marginStart=
"
2
0dp"
android:layout_marginTop=
"
2
0dp"
android:layout_width=
"
165
dp"
android:layout_height=
"
69
dp"
android:layout_marginStart=
"0dp"
android:layout_marginTop=
"
1
0dp"
android:layout_marginEnd=
"309dp"
android:layout_marginBottom=
"586dp"
android:text=
"Result - Below P(X)"
android:background=
"@drawable/dd56"
android:fontFamily=
"cursive"
android:text=
"Below P(X)"
android:textAlignment=
"center"
android:textColor=
"@color/purple_500"
android:textSize=
"
30
sp"
android:textSize=
"
25
sp"
android:textStyle=
"bold"
/>
...
...
app/src/main/res/layout/fragment_between.xml
View file @
6a30b078
...
...
@@ -2,8 +2,8 @@
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"
79
0dp"
android:background=
"
#FED
"
android:layout_height=
"
85
0dp"
android:background=
"
@drawable/cardcutbackground
"
tools:context=
".calculationfunction.StepsFragment.BetweenFragment"
>
<TextView
...
...
@@ -16,9 +16,21 @@
android:layout_marginEnd=
"311dp"
android:layout_marginBottom=
"215dp"
android:text=
"Step 1"
android:textColor=
"@color/cardview_dark_background"
android:textSize=
"25sp"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/textviw_finalvue"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"165dp"
android:layout_height=
"124dp"
android:layout_marginStart=
"220dp"
android:layout_marginTop=
"755dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:background=
"@drawable/emoji1"
android:textColor=
"#008000"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/textViewresult"
style=
"@style/Base.TextAppearance.AppCompat.Large"
...
...
@@ -58,7 +70,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"Mean(μ)"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -71,7 +82,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"SD (σ)"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -84,7 +94,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"P("
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -97,7 +106,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"= P ( "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -110,7 +118,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"= P ( "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -123,7 +130,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
" - "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -149,7 +155,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"@string/between"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -162,7 +167,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"@string/zscore"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -175,7 +179,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"@string/zscoregreaterthan"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/Te4x5tvew_pOb"
...
...
@@ -187,7 +190,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"@string/zbetween"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/Te4xtv_pOb"
...
...
@@ -199,19 +201,18 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
" ) "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/Te4tvew_pOb"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"wrap_content"
android:layout_height=
"
34
dp"
android:layout_height=
"
28
dp"
android:layout_marginStart=
"50dp"
android:layout_marginTop=
"500dp"
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
" Z > "
android:textColor=
"@color/design_default_color_error"
android:text=
"@string/z"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/Textvew_pOrb1"
...
...
@@ -223,7 +224,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"@string/normaldistribtion"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/extvew_pOrb1"
...
...
@@ -235,7 +235,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
" /"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
android:textSize="20sp" />
<TextView
...
...
@@ -248,7 +247,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
" /"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/Textviw_pOrb"
...
...
@@ -260,7 +258,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
" ) "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/Textviw_prb"
...
...
@@ -272,7 +269,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
" ) "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/Textvw_prb"
...
...
@@ -284,7 +280,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
" ) "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -309,7 +304,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"="
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/Textview_equala"
...
...
@@ -321,7 +315,6 @@
android:layout_marginEnd=
"11dp"
android:layout_marginBottom=
"510dp"
android:text=
"="
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -335,7 +328,6 @@
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
"P( "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -348,7 +340,6 @@
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
"P( "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -361,7 +352,6 @@
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
" ) = "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -375,7 +365,6 @@
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
" ) = "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/textvijew_stp2"
...
...
@@ -387,7 +376,6 @@
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"348dp"
android:text=
" = "
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
...
...
@@ -644,22 +632,24 @@
android:layout_marginEnd=
"176dp"
android:layout_marginBottom=
"96dp"
android:text=
"Use the standard normal table and find the normal distribution of X"
android:textColor=
"@color/design_default_color_error"
android:textSize=
"20sp"
/>
<TextView
android:id=
"@+id/textView15"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"
313
dp"
android:layout_height=
"
41
dp"
android:layout_marginStart=
"
2
0dp"
android:layout_marginTop=
"
2
0dp"
android:layout_width=
"
165
dp"
android:layout_height=
"
64
dp"
android:layout_marginStart=
"0dp"
android:layout_marginTop=
"
1
0dp"
android:layout_marginEnd=
"309dp"
android:layout_marginBottom=
"586dp"
android:text=
"Result - Between P(X)"
android:background=
"@drawable/dd56"
android:fontFamily=
"cursive"
android:text=
"Between P(X)"
android:textAlignment=
"center"
android:textColor=
"@color/purple_500"
android:textSize=
"
30
sp"
android:textSize=
"
25
sp"
android:textStyle=
"bold"
/>
...
...
app/src/main/res/layout/fragment_type_three_inde_a_union_b.xml
0 → 100644
View file @
6a30b078
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/fragment_type_two_a__union__b__inde.xml
0 → 100644
View file @
6a30b078
This diff is collapsed.
Click to expand it.
app/src/main/res/values/strings.xml
View file @
6a30b078
...
...
@@ -96,5 +96,6 @@
<string
name=
"normaldisequation"
>
<![CDATA[) = P ( X - μ <]]>
</string>
<string
name=
"p_z"
>
<![CDATA[P ( Z <]]>
</string>
<string
name=
"eq1"
>
<![CDATA[P ( [ X - μ ] / σ < []]>
</string>
<string
name=
"z"
>
<![CDATA[Z <]]>
</string>
</resources>
\ No newline at end of file
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