def cdf(self, x): return clip.clip((x - self.loc) / self.scale, 0., 1.)
def hard_sigmoid(x): return clip.clip(x * 0.2 + 0.5, 0.0, 1.0)
def cdf(self, x): return clip.clip((x - self.low) / (self.high - self.low), 0., 1.)
def hard_sigmoid(x): return clip.clip(x * 0.2 + 0.5, 0.0, 1.0)