Accumulative store input values in a memory at a given position
[sim, out] = ld_HistogramInt32(sim, events, Val, Weight, from, to )
Val * - input
Weight * - int32
out *(from-to+1) int32 - the vector representing the histogram
from - min input value in the histogram
to - max input value in the histogram