def Scale(self, factor):
new = self.Copy()<EOL>new.d.clear()<EOL>for val, prob in self.Items():<EOL><INDENT>new.Set(val * factor, prob)<EOL><DEDENT>return new<EOL>
Multiplies the values by a factor.

        factor: what to multiply by

        Returns: new object