Exemplo n.º 1
0
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = linthresh
     log_base = np.log(base)
     logb_linthresh = np.log(linthresh) / log_base
     self._linadjust = 1.0 - logb_linthresh
Exemplo n.º 2
0
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = linthresh
     self._log_base = np.log(base)
     self._log_linthresh = np.log(linthresh) / self._log_base
     self._linadjust = linthresh / (np.log(linthresh) / self._log_base)
Exemplo n.º 3
0
 def __init__(self, base, nonpos):
     Transform.__init__(self)
     self.base = base
     if nonpos == 'mask':
         self._handle_nonpos = _mask_non_positives
     else:
         self._handle_nonpos = _clip_non_positives
Exemplo n.º 4
0
 def __init__(self, base, nonpos):
     Transform.__init__(self)
     self.base = base
     if nonpos == 'mask':
         self._handle_nonpos = _mask_non_positives
     else:
         self._handle_nonpos = _clip_non_positives
Exemplo n.º 5
0
 def __init__(self, base, linthresh, linscale):
     Transform.__init__(self)
     self.base = base
     self.linthresh = linthresh
     self.linscale = linscale
     self._linscale_adj = (linscale / (1.0 - self.base ** -1))
     self._log_base = np.log(base)
Exemplo n.º 6
0
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = linthresh
     self._log_base = np.log(base)
     self._log_linthresh = np.log(linthresh) / self._log_base
     self._linadjust = linthresh / (np.log(linthresh) / self._log_base)
Exemplo n.º 7
0
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = linthresh
     log_base = np.log(base)
     logb_linthresh = np.log(linthresh) / log_base
     self._linadjust = 1.0 - logb_linthresh
Exemplo n.º 8
0
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = abs(linthresh)
     self._log_base = np.log(base)
     logb_linthresh = np.log(linthresh) / self._log_base
     self._linadjust = 1.0 - logb_linthresh
     self._linscale = 1.0 / linthresh
Exemplo n.º 9
0
 def __init__(self, base, linthresh, linscale):
     Transform.__init__(self)
     symlog = SymmetricalLogScale.SymmetricalLogTransform(base, linthresh, linscale)
     self.base = base
     self.linthresh = linthresh
     self.invlinthresh = symlog.transform(linthresh)
     self.linscale = linscale
     self._linscale_adj = (linscale / (1.0 - self.base ** -1))
Exemplo n.º 10
0
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = abs(linthresh)
     self._log_base = np.log(base)
     logb_linthresh = np.log(linthresh) / self._log_base
     self._linadjust = 1.0 - logb_linthresh
     self._linscale = 1.0 / linthresh
Exemplo n.º 11
0
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = abs(linthresh)
     self._log_base = np.log(base)
     self._logb_linthresh = np.log(linthresh) / self._log_base
     self._logb_minlog = np.floor(self._logb_linthresh - 1e-10)
     self._linadjust = np.abs((np.log(linthresh) - self._logb_minlog) /
                              linthresh)
Exemplo n.º 12
0
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = abs(linthresh)
     self._log_base = np.log(base)
     self._logb_linthresh = np.log(linthresh) / self._log_base
     self._logb_minlog = np.floor(self._logb_linthresh - 1e-10)
     self._linadjust = np.abs((np.log(linthresh) - self._logb_minlog) /
                              linthresh)
Exemplo n.º 13
0
 def __init__(self, base):
     Transform.__init__(self)
     self.base = base
Exemplo n.º 14
0
 def __init__(self, base):
     Transform.__init__(self)
     self.base = base