Characterizations of probability laws through constant regression