changed the return type of the histogram calculations in RBMRenderer