On the Origin of Utility, Weighting, and Discounting Functions