If the result is substantially positive, we regard the person’s life as happy; if negative, as unhappy. So, to measure happiness defined in that way, one would have to sample moments of people’s existence randomly, and try to find out whether they are experiencing positive or negative mental states.