histc uses wrong default and normalization=%t is wrong
Reported by Richard llom
There are two things wrong with histc:
a)
histc without normalization uses normalization=%t as default, however in the help normalization=%f is defined as default.
b)
histc with normalization=%t gives *TOTALLY* *WRONG* results.
HOW TO REPRODUCE THE BUG:
-------------------------
myprob=[1 2 2 3 3 3]
a) (wrong default)
histc(3,myprob)
result:
ans = 0.25 0.5 0.75
expected:
ans = 1. 2. 3.
b) wrong results:
histc(3,myprob,normalization=%t)
results:
ans = 0.25 0.5 0.75
expected:
ans = 0.1666667 0.3333333 0.5