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
12206d8b
Commit
12206d8b
authored
Feb 06, 2021
by
IT17165662
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create EssayType for ProDistribution calculation
parent
8972ef7c
Changes
16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
284 additions
and
189 deletions
+284
-189
app/src/main/AndroidManifest.xml
app/src/main/AndroidManifest.xml
+3
-2
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/DescriptiveStatisticsCalcuation.java
.../calculationfunction/DescriptiveStatisticsCalcuation.java
+1
-4
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/EssayTypeDescriptiveStaticQuestion.java
...lculationfunction/EssayTypeDescriptiveStaticQuestion.java
+7
-142
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/EssayTypeProDistributionActivity.java
...calculationfunction/EssayTypeProDistributionActivity.java
+12
-6
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/EssayTypeStdQuestionActivity.java
...tor/calculationfunction/EssayTypeStdQuestionActivity.java
+152
-0
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/ProbabilityDistributionCalculation.java
...lculationfunction/ProbabilityDistributionCalculation.java
+6
-8
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StandaradDeviationCalculation.java
...or/calculationfunction/StandaradDeviationCalculation.java
+1
-1
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/dataExtraction/ProbabilityDistributionQuestionComparation.java
...xtraction/ProbabilityDistributionQuestionComparation.java
+3
-3
app/src/main/res/drawable/interqrpic.PNG
app/src/main/res/drawable/interqrpic.PNG
+0
-0
app/src/main/res/drawable/ranfedescribe.PNG
app/src/main/res/drawable/ranfedescribe.PNG
+0
-0
app/src/main/res/layout/activity_display_essay_question_ans_with_steps.xml
...layout/activity_display_essay_question_ans_with_steps.xml
+1
-3
app/src/main/res/layout/activity_essay_type_std_question.xml
app/src/main/res/layout/activity_essay_type_std_question.xml
+51
-0
app/src/main/res/layout/fragment_i_q_r.xml
app/src/main/res/layout/fragment_i_q_r.xml
+23
-9
app/src/main/res/layout/fragment_maximum.xml
app/src/main/res/layout/fragment_maximum.xml
+1
-1
app/src/main/res/layout/fragment_minimum.xml
app/src/main/res/layout/fragment_minimum.xml
+1
-1
app/src/main/res/layout/fragment_range.xml
app/src/main/res/layout/fragment_range.xml
+22
-9
No files found.
app/src/main/AndroidManifest.xml
View file @
12206d8b
...
...
@@ -11,7 +11,8 @@
android:roundIcon=
"@mipmap/app_logo"
android:supportsRtl=
"true"
android:theme=
"@style/Theme.ProbabilityAndStatisticsAnalyserAndEducator"
>
<activity
android:name=
".calculationfunction.EssayTypeProDistributionActivity"
></activity>
<activity
android:name=
".calculationfunction.EssayTypeStdQuestionActivity"
></activity>
<activity
android:name=
".calculationfunction.EssayTypeProDistributionActivity"
/>
<activity
android:name=
".inputMethod.StandardDeviationInputMethod"
/>
<activity
android:name=
".calculationfunction.StandaradDeviationCalculation"
/>
<activity
android:name=
".inputMethod.ProbabilityDistributionsIM"
/>
...
...
@@ -22,7 +23,7 @@
<activity
android:name=
".Sign_up_part3"
/>
<activity
android:name=
".Sign_up_part2"
/>
<activity
android:name=
".calculationfunction.DescriptiveStatisticsCalcuation"
/>
<activity
android:name=
".calculationfunction.
DisplayEssayQuestionAnsWithStepsActivity
"
/>
<activity
android:name=
".calculationfunction.
EssayTypeDescriptiveStaticQuestion
"
/>
<activity
android:name=
".inputMethod.ProbabilityCalculationIM"
/>
<activity
android:name=
".calculationfunction.ProbabilityDistributionCalculation"
/>
<activity
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/DescriptiveStatisticsCalcuation.java
View file @
12206d8b
...
...
@@ -7,7 +7,6 @@ import androidx.fragment.app.FragmentTransaction;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.os.Parcelable
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.R
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment.FirstQuartileFragment
;
...
...
@@ -20,9 +19,7 @@ import com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunc
import
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment.RangeFragment
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment.ThirdQuartileFragment
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
public
class
DescriptiveStatisticsCalcuation
extends
AppCompatActivity
{
...
...
@@ -191,7 +188,7 @@ public class DescriptiveStatisticsCalcuation extends AppCompatActivity {
//create intent object for parse the value from DescriptiveStatisticsCalcuation class to DisplayEssayQuestionAnsWithStepsActivity class
Intent
intent1
=
new
Intent
(
DescriptiveStatisticsCalcuation
.
this
,
DisplayEssayQuestionAnsWithStepsActivity
.
class
);
Intent
intent1
=
new
Intent
(
DescriptiveStatisticsCalcuation
.
this
,
EssayTypeDescriptiveStaticQuestion
.
class
);
intent1
.
putExtra
(
"extractDatasetForEssayArray"
,
extractDatasetForEssayArray
);
intent1
.
putExtra
(
"extractedKeywordsFromFuzzy"
,
extractedKeywordsFromFuzzy
);
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/
DisplayEssayQuestionAnsWithStepsActivity
.java
→
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/
EssayTypeDescriptiveStaticQuestion
.java
View file @
12206d8b
This diff is collapsed.
Click to expand it.
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/EssayTypeProDistributionActivity.java
View file @
12206d8b
...
...
@@ -13,6 +13,7 @@ import com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunc
import
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment.VarianceOfDistributionFragment
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
public
class
EssayTypeProDistributionActivity
extends
AppCompatActivity
{
String
[]
extractDatasetForEssayArray
;
...
...
@@ -54,9 +55,14 @@ public class EssayTypeProDistributionActivity extends AppCompatActivity {
Intent
intent1
=
getIntent
();
extractDatasetForEssayArray
=
intent1
.
getStringArrayExtra
(
"extractDatasetForEssayArray"
);
// System.out.println("ProDisextractDatasetForEssayArray:-"+ Arrays.toString(extractDatasetForEssayArray));
// System.out.println("LengthofProDta:"+extractDatasetForEssayArray.length);
extractedKeywordsFromFuzzy
=
intent1
.
getStringExtra
(
"extractedKeywordsFromFuzzy"
);
// System.out.println("ProDisextractedKeywordsFromFuzzy:-"+extractedKeywordsFromFuzzy);
extractDatasetForEssayArray1
=
intent1
.
getStringArrayExtra
(
"extractDatasetForEssayArray1"
);
// System.out.println("ProDisextractDatasetForEssayArray1:-"+Arrays.toString(extractDatasetForEssayArray1));
extractedKeywordsFromFuzzy1
=
intent1
.
getStringExtra
(
"extractedKeywordsFromFuzzy1"
);
// System.out.println("ProDisextractedKeywordsFromFuzzy1:-"+extractedKeywordsFromFuzzy1);
...
...
@@ -80,8 +86,8 @@ public class EssayTypeProDistributionActivity extends AppCompatActivity {
//------------------Probability Distribution------------------------------------------------------------------------
if
(
keywordlist
.
contains
(
"Standard Deviation"
)){
stdDistributionbundle
.
putDouble
(
"std_Value"
,
(
Double
)
stddistributionlist
.
get
(
0
));
stdDistributionbundle
.
put
IntArray
(
"Dataset_Values"
,
(
int
[])
stddistributionlist
.
get
(
2
));
stdDistributionbundle
.
put
DoubleArray
(
"Probability_Value"
,
(
double
[])
stddistributionlist
.
get
(
1
));
stdDistributionbundle
.
put
StringArray
(
"Dataset_Values"
,
(
String
[])
stddistributionlist
.
get
(
2
));
stdDistributionbundle
.
put
StringArray
(
"Probability_Value"
,
(
String
[])
stddistributionlist
.
get
(
1
));
stdDistributionbundle
.
putDouble
(
"Mean_Distribution"
,
(
Double
)
stddistributionlist
.
get
(
3
));
...
...
@@ -95,8 +101,8 @@ public class EssayTypeProDistributionActivity extends AppCompatActivity {
if
(
keywordlist
.
contains
(
"Mean"
)){
meanDistributionbundle
.
putDouble
(
"Mean_Value"
,
(
Double
)
meanDlist
.
get
(
0
));
meanDistributionbundle
.
put
IntArray
(
"Dataset_Values"
,
(
int
[])
meanDlist
.
get
(
2
));
meanDistributionbundle
.
put
DoubleArray
(
"Probability_Value"
,
(
double
[])
meanDlist
.
get
(
1
));
meanDistributionbundle
.
put
StringArray
(
"Dataset_Values"
,
(
String
[])
meanDlist
.
get
(
2
));
meanDistributionbundle
.
put
StringArray
(
"Probability_Value"
,
(
String
[])
meanDlist
.
get
(
1
));
MeanOfDistributionFragment
meanOfDistributionFragment
=
new
MeanOfDistributionFragment
();
...
...
@@ -107,8 +113,8 @@ public class EssayTypeProDistributionActivity extends AppCompatActivity {
if
(
keywordlist
.
contains
(
"Variance"
)){
varianceDistributionbundle
.
putDouble
(
"Variance_Value"
,
(
Double
)
varianceDlist
.
get
(
0
));
varianceDistributionbundle
.
put
IntArray
(
"Dataset_Values"
,
(
int
[])
varianceDlist
.
get
(
2
));
varianceDistributionbundle
.
put
DoubleArray
(
"Probability_Value"
,
(
double
[])
varianceDlist
.
get
(
1
));
varianceDistributionbundle
.
put
StringArray
(
"Dataset_Values"
,
(
String
[])
varianceDlist
.
get
(
2
));
varianceDistributionbundle
.
put
StringArray
(
"Probability_Value"
,
(
String
[])
varianceDlist
.
get
(
1
));
varianceDistributionbundle
.
putDouble
(
"Mean_Distribution"
,
(
Double
)
varianceDlist
.
get
(
3
));
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/EssayTypeStdQuestionActivity.java
0 → 100644
View file @
12206d8b
package
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction
;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.fragment.app.FragmentTransaction
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.widget.FrameLayout
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.R
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment.KurtosisFragment
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment.PopulationStandardDeviationFragment
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment.PopulationVarianceFragment
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.calculationfunction.StepsFragment.SkewnessFragment
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
public
class
EssayTypeStdQuestionActivity
extends
AppCompatActivity
{
String
[]
extractDatasetForEssayArray
;
String
extractedKeywordsFromFuzzy
;
//standarddeviation framelayout
FrameLayout
mtenlayout
;
FrameLayout
melevenlayout
;
FrameLayout
mtwelevelayout
;
FrameLayout
mthirdteenlayout
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_essay_type_std_question
);
FragmentTransaction
fragmentTransaction
=
getSupportFragmentManager
().
beginTransaction
();
//create bundle for standarddeviation calculation
Bundle
stdbundle
=
new
Bundle
();
Bundle
skewnessbundle
=
new
Bundle
();
Bundle
variancebundle
=
new
Bundle
();
Bundle
kurtosisbundle
=
new
Bundle
();
//intialize the layout standard deviation calculation
mtenlayout
=
findViewById
(
R
.
id
.
tenLayout
);
melevenlayout
=
findViewById
(
R
.
id
.
elevenLayout
);
mtwelevelayout
=
findViewById
(
R
.
id
.
tweleveLayout
);
mthirdteenlayout
=
findViewById
(
R
.
id
.
thirdteenLayout
);
//create string arraylisy for store keywords
ArrayList
<
String
>
keywordlist
=
new
ArrayList
<>();
//Create object for StdCalculation
StdCalculation
stdCalculation
=
new
StdCalculation
();
ArrayList
<
Object
>
populationstdlist
=
new
ArrayList
<
Object
>();
ArrayList
<
Object
>
skenesslist
=
new
ArrayList
<
Object
>();
ArrayList
<
Object
>
kurtosislist
=
new
ArrayList
<
Object
>();
ArrayList
<
Object
>
populationvariancelst
=
new
ArrayList
<>();
Intent
intent1
=
getIntent
();
extractDatasetForEssayArray
=
intent1
.
getStringArrayExtra
(
"extractDatasetForEssayArray"
);
System
.
out
.
println
(
"StandardDeviationextractDatasetForEssayArray"
+
Arrays
.
toString
(
extractDatasetForEssayArray
));
System
.
out
.
println
(
"lengthstd:"
+
extractDatasetForEssayArray
.
length
);
extractedKeywordsFromFuzzy
=
intent1
.
getStringExtra
(
"extractedKeywordsFromFuzzy"
);
System
.
out
.
println
(
"StandardDeviationextractedKeywordsFromFuzzy"
+
extractedKeywordsFromFuzzy
);
//---------------------------Standard Deviation Calculation--------------------------------------------------------------------------------
if
((
extractedKeywordsFromFuzzy
.
contains
(
"Standard"
)
&&
extractedKeywordsFromFuzzy
.
contains
(
"Deviation"
))
||
(
extractedKeywordsFromFuzzy
.
contains
(
"standard"
)
&&
extractedKeywordsFromFuzzy
.
contains
(
"deviation"
))
||
extractedKeywordsFromFuzzy
.
contains
(
"σ"
)){
populationstdlist
=
stdCalculation
.
Populationstd
(
extractDatasetForEssayArray
);
keywordlist
.
add
(
"Standard Deviation"
);
}
if
(
extractedKeywordsFromFuzzy
.
contains
(
"Variance"
)
||
extractedKeywordsFromFuzzy
.
contains
(
"variance"
)
||
extractedKeywordsFromFuzzy
.
contains
(
"σ²"
)
||
extractedKeywordsFromFuzzy
.
contains
(
"s²"
)){
populationvariancelst
=
stdCalculation
.
PopulationVariance
(
extractDatasetForEssayArray
);
keywordlist
.
add
(
"Variance"
);
}
if
(
extractedKeywordsFromFuzzy
.
contains
(
"Skewness"
)
||
extractedKeywordsFromFuzzy
.
contains
(
"skewness"
)){
skenesslist
=
stdCalculation
.
Skewness
(
extractDatasetForEssayArray
);
keywordlist
.
add
(
"Skewness"
);
}
if
(
extractedKeywordsFromFuzzy
.
contains
(
"Kurtosis"
)
||
extractedKeywordsFromFuzzy
.
contains
(
"kurtosis"
)){
kurtosislist
=
stdCalculation
.
Kurtosis
(
extractDatasetForEssayArray
);
keywordlist
.
add
(
"Kurtosis"
);
}
///Standard deviation
if
(
keywordlist
.
contains
(
"Variance"
)){
variancebundle
.
putStringArray
(
"Dataset_Values"
,
(
String
[])
populationvariancelst
.
get
(
0
));
variancebundle
.
putDouble
(
"Mean_values"
,
(
Double
)
populationvariancelst
.
get
(
1
));
variancebundle
.
putDouble
(
"Variance_value"
,
(
Double
)
populationvariancelst
.
get
(
2
));
variancebundle
.
putDouble
(
"Sum_of_numbers"
,
(
Double
)
populationvariancelst
.
get
(
3
));
variancebundle
.
putInt
(
"No_ele_dataset"
,
(
Integer
)
populationvariancelst
.
get
(
4
));
PopulationVarianceFragment
populationVarianceFragment
=
new
PopulationVarianceFragment
();
populationVarianceFragment
.
setArguments
(
variancebundle
);
fragmentTransaction
.
add
(
R
.
id
.
elevenLayout
,
populationVarianceFragment
);
}
if
(
keywordlist
.
contains
(
"Skewness"
)){
skewnessbundle
.
putDouble
(
"Std_values"
,
(
Double
)
skenesslist
.
get
(
3
));
skewnessbundle
.
putStringArray
(
"Dataset_Values"
,
(
String
[])
skenesslist
.
get
(
0
));
skewnessbundle
.
putDouble
(
"Mean_values"
,
(
Double
)
skenesslist
.
get
(
2
));
skewnessbundle
.
putDouble
(
"Skewness_value"
,
(
Double
)
skenesslist
.
get
(
1
));
skewnessbundle
.
putDouble
(
"Sum_of_numbers"
,
(
Double
)
skenesslist
.
get
(
4
));
skewnessbundle
.
putDouble
(
"Num_of_elements"
,(
Double
)
skenesslist
.
get
(
5
));
skewnessbundle
.
putInt
(
"Num_of_dataset"
,
(
Integer
)
skenesslist
.
get
(
6
));
SkewnessFragment
skewnessFragment
=
new
SkewnessFragment
();
skewnessFragment
.
setArguments
(
skewnessbundle
);
fragmentTransaction
.
add
(
R
.
id
.
tweleveLayout
,
skewnessFragment
);
}
if
(
keywordlist
.
contains
(
"Kurtosis"
)){
kurtosisbundle
.
putDouble
(
"Std_values"
,
(
Double
)
kurtosislist
.
get
(
5
));
kurtosisbundle
.
putStringArray
(
"Dataset_Values"
,
(
String
[])
kurtosislist
.
get
(
0
));
kurtosisbundle
.
putDouble
(
"Mean_values"
,
(
Double
)
kurtosislist
.
get
(
2
));
kurtosisbundle
.
putDouble
(
"Kurtosis_value"
,
(
Double
)
kurtosislist
.
get
(
1
));
kurtosisbundle
.
putDouble
(
"Sum_of_numbers"
,
(
Double
)
kurtosislist
.
get
(
3
));
kurtosisbundle
.
putDouble
(
"number_of_elements"
,(
Double
)
kurtosislist
.
get
(
4
));
kurtosisbundle
.
putInt
(
"No_Of_Dataset"
,(
Integer
)
kurtosislist
.
get
(
6
));
KurtosisFragment
kurtosisFragment
=
new
KurtosisFragment
();
kurtosisFragment
.
setArguments
(
kurtosisbundle
);
fragmentTransaction
.
add
(
R
.
id
.
thirdteenLayout
,
kurtosisFragment
);
}
if
(
keywordlist
.
contains
(
"Standard Deviation"
)){
stdbundle
.
putStringArray
(
"Dataset_Values"
,
(
String
[])
populationstdlist
.
get
(
0
));
stdbundle
.
putDouble
(
"Mean_values"
,
(
Double
)
populationstdlist
.
get
(
1
));
stdbundle
.
putDouble
(
"Std_values"
,
(
Double
)
populationstdlist
.
get
(
2
));
stdbundle
.
putDouble
(
"Sum_of_numbers"
,
(
Double
)
populationstdlist
.
get
(
3
));
stdbundle
.
putInt
(
"Num_of_ele"
,
(
Integer
)
populationstdlist
.
get
(
4
));
PopulationStandardDeviationFragment
populationStandardDeviationFragment
=
new
PopulationStandardDeviationFragment
();
populationStandardDeviationFragment
.
setArguments
(
stdbundle
);
fragmentTransaction
.
add
(
R
.
id
.
tenLayout
,
populationStandardDeviationFragment
);
}
fragmentTransaction
.
commit
();
}
}
\ No newline at end of file
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/ProbabilityDistributionCalculation.java
View file @
12206d8b
...
...
@@ -31,9 +31,7 @@ public class ProbabilityDistributionCalculation extends AppCompatActivity {
Intent
intent
=
getIntent
();
array1
=
intent
.
getStringArrayExtra
(
"dataset"
);
// System.out.println("Array1:"+ Arrays.toString(array1));
array2
=
intent
.
getStringArrayExtra
(
"dataset1"
);
// System.out.println("Array2:"+Arrays.toString(array2));
//create proDistCalculation object
...
...
@@ -109,21 +107,21 @@ public class ProbabilityDistributionCalculation extends AppCompatActivity {
extractedKeywordsFromFuzzy1
=
intent
.
getStringExtra
(
"extractedKeywordsFromFuzzy1"
);
/*
System.out.println("desansextractDatasetForEssayArray:-"+Arrays.toString(extractDatasetForEssayArray));
System.out.println("extlength:"+extractDatasetForEssayArray.length);
System.out.println("desansextractedKeywordsFromFuzzy:-"+extractedKeywordsFromFuzzy);
System.out.println("desansextractDatasetForEssayArray1:-"+Arrays.toString(extractDatasetForEssayArray1));
System.out.println("extlength1:"+extractDatasetForEssayArray.length);
System.out.println("desansextractedKeywordsFromFuzzy1:-"+extractedKeywordsFromFuzzy1);
*/
//create intent object for parse the value from DescriptiveStatisticsCalcuation class to DisplayEssayQuestionAnsWithStepsActivity class
Intent
intent1
=
new
Intent
(
ProbabilityDistributionCalculation
.
this
,
EssayTypeProDistributionActivity
.
class
);
intent
.
putExtra
(
"extractDatasetForEssayArray"
,
extractDatasetForEssayArray
);
intent
.
putExtra
(
"extractDatasetForEssayArray1"
,
extractDatasetForEssayArray1
);
intent
.
putExtra
(
"extractedKeywordsFromFuzzy"
,
extractedKeywordsFromFuzzy
);
intent
.
putExtra
(
"extractedKeywordsFromFuzzy1"
,
extractedKeywordsFromFuzzy1
);
intent
1
.
putExtra
(
"extractDatasetForEssayArray"
,
extractDatasetForEssayArray
);
intent
1
.
putExtra
(
"extractDatasetForEssayArray1"
,
extractDatasetForEssayArray1
);
intent
1
.
putExtra
(
"extractedKeywordsFromFuzzy"
,
extractedKeywordsFromFuzzy
);
intent
1
.
putExtra
(
"extractedKeywordsFromFuzzy1"
,
extractedKeywordsFromFuzzy1
);
//start activity intent1
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StandaradDeviationCalculation.java
View file @
12206d8b
...
...
@@ -139,7 +139,7 @@ public class StandaradDeviationCalculation extends AppCompatActivity {
//create intent object for parse the value from StandaradDeviationCalculation class to DisplayEssayQuestionAnsWithStepsActivity class
Intent
intent1
=
new
Intent
(
StandaradDeviationCalculation
.
this
,
DisplayEssayQuestionAnsWithSteps
Activity
.
class
);
Intent
intent1
=
new
Intent
(
StandaradDeviationCalculation
.
this
,
EssayTypeStdQuestion
Activity
.
class
);
intent1
.
putExtra
(
"extractDatasetForEssayArray"
,
extractDatasetForEssayArray
);
intent1
.
putExtra
(
"extractedKeywordsFromFuzzy"
,
extractedKeywordsFromFuzzy
);
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/dataExtraction/ProbabilityDistributionQuestionComparation.java
View file @
12206d8b
...
...
@@ -76,7 +76,7 @@ public class ProbabilityDistributionQuestionComparation {
// System.out.println("matching: "+result1);
matchprodiskeyword
=
QuestionMatch
(
result
);
return
result
;
return
result
1
;
}
...
...
@@ -144,7 +144,7 @@ public class ProbabilityDistributionQuestionComparation {
List
<
String
>
extractnumbervalues
=
new
ArrayList
<
String
>();
Pattern
pattern1
=
Pattern
.
compile
(
"(?<=
\\s)\\b(\\d)+(,|\\s*(\\d)+)*\\b
(?!\\.\\b)"
);
Pattern
pattern1
=
Pattern
.
compile
(
"(?<=
,|\\s)\\d++
(?!\\.\\b)"
);
Matcher
matcher1
=
pattern1
.
matcher
(
randomvalue
);
boolean
value1
=
matcher1
.
matches
();
...
...
@@ -163,7 +163,7 @@ public class ProbabilityDistributionQuestionComparation {
List
<
String
>
extractprobabilityvalues
=
new
ArrayList
<
String
>();
Pattern
pattern2
=
Pattern
.
compile
(
"(?<=
\\s)\\b(0(\\.\\d+)|1\\.0)+(,|\\s*(0(\\.\\d+)|1\\.0)+)*\\b
(?!\\.\\b)"
);
Pattern
pattern2
=
Pattern
.
compile
(
"(?<=
,|\\s)(0(\\.\\d+)?|1\\.0)+(,(0(\\.\\d+)?|1\\.0)+)*
(?!\\.\\b)"
);
Matcher
matcher2
=
pattern2
.
matcher
(
probabilityvalue
);
boolean
value2
=
matcher2
.
matches
();
...
...
app/src/main/res/drawable/interqrpic.PNG
0 → 100644
View file @
12206d8b
18.2 KB
app/src/main/res/drawable/ranfedescribe.PNG
0 → 100644
View file @
12206d8b
7.13 KB
app/src/main/res/layout/activity_display_essay_question_ans_with_steps.xml
View file @
12206d8b
...
...
@@ -8,7 +8,7 @@
android:orientation=
"vertical"
android:layout_height=
"match_parent"
tools:context=
".calculationfunction.
DisplayEssayQuestionAnsWithStepsActivity
"
>
tools:context=
".calculationfunction.
EssayTypeDescriptiveStaticQuestion
"
>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -110,8 +110,6 @@ android:id="@+id/LinearLayout_1">
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/fifteenLayout"
>
</FrameLayout>
<FrameLayout
android:layout_width=
"match_parent"
...
...
app/src/main/res/layout/activity_essay_type_std_question.xml
0 → 100644
View file @
12206d8b
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:orientation=
"vertical"
android:layout_height=
"match_parent"
tools:context=
".calculationfunction.EssayTypeStdQuestionActivity"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:id=
"@+id/LinearLayout_1"
>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/tenLayout"
>
</FrameLayout>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/elevenLayout"
>
</FrameLayout>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/tweleveLayout"
>
</FrameLayout>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/thirdteenLayout"
>
</FrameLayout>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/fragment_i_q_r.xml
View file @
12206d8b
...
...
@@ -13,7 +13,7 @@
android:layout_width=
"106dp"
android:layout_height=
"43dp"
android:layout_marginStart=
"140dp"
android:layout_marginTop=
"
59
0dp"
android:layout_marginTop=
"
68
0dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:textSize=
"17sp"
...
...
@@ -33,13 +33,27 @@
android:src=
"@drawable/iqrformula2"
tools:ignore=
"ContentDescription"
/>
<ImageView
android:id=
"@+id/imageView7"
style=
"@style/Animation.Design.BottomSheetDialog"
android:layout_width=
"346dp"
android:layout_height=
"91dp"
android:layout_marginStart=
"20dp"
android:layout_marginTop=
"550dp"
android:layout_marginEnd=
"200dp"
android:layout_marginBottom=
"176dp"
android:background=
"@drawable/border"
android:src=
"@drawable/interqrpic"
tools:ignore=
"ContentDescription"
/>
<TextView
android:id=
"@+id/textviw_firstqr"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"106dp"
android:layout_height=
"43dp"
android:layout_marginStart=
"270dp"
android:layout_marginTop=
"
59
0dp"
android:layout_marginTop=
"
68
0dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:background=
"@drawable/border"
...
...
@@ -52,7 +66,7 @@
android:layout_width=
"45dp"
android:layout_height=
"48dp"
android:layout_marginStart=
"250dp"
android:layout_marginTop=
"6
0
0dp"
android:layout_marginTop=
"6
7
0dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:text=
"-"
...
...
@@ -65,7 +79,7 @@
android:layout_width=
"188dp"
android:layout_height=
"43dp"
android:layout_marginStart=
"140dp"
android:layout_marginTop=
"
65
0dp"
android:layout_marginTop=
"
74
0dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:background=
"@drawable/border"
...
...
@@ -79,7 +93,7 @@
android:layout_width=
"40dp"
android:layout_height=
"65dp"
android:layout_marginStart=
"120dp"
android:layout_marginTop=
"
65
0dp"
android:layout_marginTop=
"
74
0dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:text=
"="
...
...
@@ -91,7 +105,7 @@
android:layout_width=
"36dp"
android:layout_height=
"66dp"
android:layout_marginStart=
"120dp"
android:layout_marginTop=
"
59
0dp"
android:layout_marginTop=
"
68
0dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:text=
"="
...
...
@@ -105,7 +119,7 @@
android:layout_width=
"120dp"
android:layout_height=
"43dp"
android:layout_marginStart=
"10dp"
android:layout_marginTop=
"
59
0dp"
android:layout_marginTop=
"
68
0dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"50dp"
android:text=
"IQR Range"
...
...
@@ -202,7 +216,7 @@
android:layout_width=
"387dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"4dp"
android:layout_marginTop=
"4
5
0dp"
android:layout_marginTop=
"4
4
0dp"
android:layout_marginEnd=
"176dp"
android:layout_marginBottom=
"96dp"
android:textSize=
"20sp"
...
...
@@ -230,7 +244,7 @@
android:layout_width=
"386dp"
android:layout_height=
"43dp"
android:layout_marginStart=
"1dp"
android:layout_marginTop=
"
510
dp"
android:layout_marginTop=
"
495
dp"
android:layout_marginEnd=
"110dp"
android:layout_marginBottom=
"100dp"
android:textStyle=
"bold"
...
...
app/src/main/res/layout/fragment_maximum.xml
View file @
12206d8b
...
...
@@ -2,7 +2,7 @@
<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=
"
match_parent
"
android:layout_height=
"
790dp
"
android:background=
"#FED"
tools:context=
".calculationfunction.StepsFragment.MaximumFragment"
>
...
...
app/src/main/res/layout/fragment_minimum.xml
View file @
12206d8b
...
...
@@ -2,7 +2,7 @@
<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=
"
match_parent
"
android:layout_height=
"
790dp
"
android:background=
"#FED"
tools:context=
".calculationfunction.StepsFragment.MinimumFragment"
>
...
...
app/src/main/res/layout/fragment_range.xml
View file @
12206d8b
...
...
@@ -13,7 +13,7 @@
android:layout_width=
"106dp"
android:layout_height=
"43dp"
android:layout_marginStart=
"140dp"
android:layout_marginTop=
"
59
0dp"
android:layout_marginTop=
"
68
0dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:textSize=
"17sp"
...
...
@@ -33,13 +33,26 @@
android:src=
"@drawable/range"
tools:ignore=
"ContentDescription"
/>
<ImageView
android:id=
"@+id/imageView8"
style=
"@style/Animation.Design.BottomSheetDialog"
android:layout_width=
"350dp"
android:layout_height=
"118dp"
android:layout_marginStart=
"20dp"
android:layout_marginTop=
"550dp"
android:layout_marginEnd=
"200dp"
android:layout_marginBottom=
"176dp"
android:background=
"@drawable/border"
android:src=
"@drawable/ranfedescribe"
tools:ignore=
"ContentDescription"
/>
<TextView
android:id=
"@+id/textviw_firstqr"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"106dp"
android:layout_height=
"43dp"
android:layout_marginStart=
"270dp"
android:layout_marginTop=
"
59
0dp"
android:layout_marginTop=
"
68
0dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:background=
"@drawable/border"
...
...
@@ -52,7 +65,7 @@
android:layout_width=
"45dp"
android:layout_height=
"48dp"
android:layout_marginStart=
"250dp"
android:layout_marginTop=
"6
0
0dp"
android:layout_marginTop=
"6
7
0dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:text=
"-"
...
...
@@ -65,7 +78,7 @@
android:layout_width=
"188dp"
android:layout_height=
"43dp"
android:layout_marginStart=
"140dp"
android:layout_marginTop=
"
65
0dp"
android:layout_marginTop=
"
74
0dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:background=
"@drawable/border"
...
...
@@ -79,7 +92,7 @@
android:layout_width=
"40dp"
android:layout_height=
"65dp"
android:layout_marginStart=
"120dp"
android:layout_marginTop=
"
65
0dp"
android:layout_marginTop=
"
74
0dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:text=
"="
...
...
@@ -91,7 +104,7 @@
android:layout_width=
"36dp"
android:layout_height=
"66dp"
android:layout_marginStart=
"120dp"
android:layout_marginTop=
"
59
0dp"
android:layout_marginTop=
"
68
0dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:text=
"="
...
...
@@ -105,7 +118,7 @@
android:layout_width=
"120dp"
android:layout_height=
"43dp"
android:layout_marginStart=
"10dp"
android:layout_marginTop=
"
59
0dp"
android:layout_marginTop=
"
68
0dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"50dp"
android:text=
"Range"
...
...
@@ -202,7 +215,7 @@
android:layout_width=
"387dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"4dp"
android:layout_marginTop=
"4
5
0dp"
android:layout_marginTop=
"4
4
0dp"
android:layout_marginEnd=
"176dp"
android:layout_marginBottom=
"96dp"
android:textSize=
"20sp"
...
...
@@ -230,7 +243,7 @@
android:layout_width=
"386dp"
android:layout_height=
"43dp"
android:layout_marginStart=
"1dp"
android:layout_marginTop=
"
510
dp"
android:layout_marginTop=
"
495
dp"
android:layout_marginEnd=
"110dp"
android:layout_marginBottom=
"100dp"
android:textStyle=
"bold"
...
...
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