typo corrected for negative constrains

This commit is contained in:
Nicolas 2013-05-01 17:43:03 +01:00
parent 34edbd1459
commit a286326e23

View file

@ -56,7 +56,7 @@ class negative_exponent(transformation):
def __init__(self):
self.domain= 'negative'
def f(self,x):
return -np.exp(self.x)
return -np.exp(x)
def finv(self,x):
return np.log(-x)
def gradfactor(self,f):
@ -66,7 +66,6 @@ class negative_exponent(transformation):
def __str__(self):
return '(-ve)'
class logistic(transformation):
def __init__(self,lower,upper):
self.domain= 'bounded'