Bin given limits: Difference between revisions
Content added Content deleted
Line 2,051: | Line 2,051: | ||
func limits(limit,data,dn) |
func limits(limit,data,dn) |
||
for n = 1 to len(data) |
for n = 1 to len(data) |
||
for m = 1 to len(limit)-1 |
for m = 1 to len(limit)-1 |
||
if data[n] >= limit[m] and data[n] < limit[m+1] |
if data[n] >= limit[m] and data[n] < limit[m+1] |
||
dn[m] += 1 |
dn[m] += 1 |
||
ok |
ok |
||
next |
next |
||
if data[n] >= limit[len(limit)] |
if data[n] >= limit[len(limit)] |
||
dn[len(limit)] += 1 |
dn[len(limit)] += 1 |
||
ok |
ok |
||
next |
next |
||
for n = 1 to len(limit)-1 |
for n = 1 to len(limit)-1 |
||
see ">= " + limit[n] + " and < " + limit[n+1] + " := " + dn[n] + nl |
see ">= " + limit[n] + " and < " + limit[n+1] + " := " + dn[n] + nl |
||
next |
next |
||
see ">= " + limit[n] + " := " + dn[n] + nl |
see ">= " + limit[n] + " := " + dn[n] + nl |
||
</lang> |
</lang> |
||
{{out}} |
{{out}} |
||
Line 2,092: | Line 2,092: | ||
>= 634 and < 720 := 16 |
>= 634 and < 720 := 16 |
||
>= 720 := 59 |
>= 720 := 59 |
||
</pre> |
</pre> |
||