Unbinned weighted histogram analysis method (UWHAM)