def _FitNumericPsdWithPowerLaw(self):
    (x, y) = self.NumericPsdGetXY()
    if (self._IsNumericPsdInFreq == True):
        p = FitPowerLaw((1 / x), y)
        self.PsdParams = (p[0], (- p[1]))
    else:
        p = FitPowerLaw(x, y)
        self.PsdParams = (p[0], p[1])
def _FitNumericPsdWithPowerLaw(self):
    (x, y) = self.NumericPsdGetXY()
    if (self._IsNumericPsdInFreq == True):
        p = FitPowerLaw((1 / x), y)
        self.PsdParams = (p[0], (- p[1]))
    else:
        p = FitPowerLaw(x, y)
        self.PsdParams = (p[0], p[1])