Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
intervalos
#python 3.5.2 lista =[3, 6, 8, 5, 7, 12, 9, 7, 6, 4, 8, 10, 11, 9, 4, 5] n = 20 tramo = float(max(lista)-min(lista))/n tramanter =0 for x in range(1, n+1): nelem = 0 for valor in lista: if valor<=(min(lista)+x*tramo): nelem = nelem + 1 frecuencia=(nelem-tramanter)/len(lista) frecacum = nelem/len(lista) intervalo = (min(lista)+x*tramo) print('%.3f' %intervalo, '\t', '%.4f' %frecuencia, '\t', '%.4f' %frecacum) tramanter=nelem
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
I_Love_India
Test
ConstructorBehaviourInInheritance
lesson3 part3
Hello
Calender 2019
EquivalentRandomDigits
selenium -proj
on_off
PythonSimpleBook1
stackse - search stackoverflow differently
Please log in to post a comment.