Sentence:  Interactions of mental states with one another, or changing relations of the organism and the environment, determine all sorts of changes in the quality of the mental states as regards pleasure and pain. To show how these changes come about is to obtain the laws of "<WSD>algedonics.</WSD>" 
Meaning of the word marked with <WSD> tags:  The scientific study of pleasure and pain responses.