DOMMETI commited on
Commit
e146128
·
verified ·
1 Parent(s): fcc2291

Update pages/Measurement_of_disperssion.py

Browse files
Files changed (1) hide show
  1. pages/Measurement_of_disperssion.py +15 -0
pages/Measurement_of_disperssion.py CHANGED
@@ -27,6 +27,21 @@ st.subheader("Relative Range")
27
  st.latex(r'''
28
  \text{Relative Range} = \frac{\text{Absolute Range}}{\text{Mean}} \times 100
29
  ''')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  st.markdown(''':orange[**Quartile Deviation**] is one of the measure to find the disperssion.In this type the data is divided into 4 equal parts.
31
  It will mostly focus on the central data.
32
  ''')
 
27
  st.latex(r'''
28
  \text{Relative Range} = \frac{\text{Absolute Range}}{\text{Mean}} \times 100
29
  ''')
30
+ def absolute_range(list1):
31
+ max=np.max(list1)
32
+ min=np.min(list1)
33
+ return max-min
34
+ st.title("Calculate Range")
35
+ num_input=st.text_input("Enter the values with seperated comma 1,2,3,4",key=num_input)
36
+ value=num_input.split(",")
37
+ list1=[]
38
+ for i in value:
39
+ if i.isdigit():
40
+ list1.append(int(i))
41
+ else:
42
+ pass
43
+ result=absolute_range(list1)
44
+ st.write("Absolute_Range",result)
45
  st.markdown(''':orange[**Quartile Deviation**] is one of the measure to find the disperssion.In this type the data is divided into 4 equal parts.
46
  It will mostly focus on the central data.
47
  ''')