Weighted histogram analysis method