build Histogram with soft weight scheme