1. A method for reading a digital watermark in a media signal comprising: using a computer programmed to perform the acts of: assigning sets of media signal samples into classes; computing statistical characteristics of the media samples for the classes; and using the statistical characteristics to adapt a digital watermark decoding function used to detect or read a watermark in the media signal.