Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
yield from example
test2.py
Iam hungry
nth root
abracadabra
NumPY01
Tupples
("Hello,world!")
w3resource
Reading XML file for modification