[Scipy-svn] r4486 - trunk/scipy/interpolate
scipy-svn at scipy.org
scipy-svn at scipy.org
Fri Jun 27 15:37:50 EDT 2008
Author: rkern
Date: 2008-06-27 14:37:49 -0500 (Fri, 27 Jun 2008)
New Revision: 4486
Modified:
trunk/scipy/interpolate/rbf.py
Log:
BUG: fix missing import and 'gausian' typo. Thanks to Lorenzo Bolla for the patch.
Modified: trunk/scipy/interpolate/rbf.py
===================================================================
--- trunk/scipy/interpolate/rbf.py 2008-06-27 13:24:23 UTC (rev 4485)
+++ trunk/scipy/interpolate/rbf.py 2008-06-27 19:37:49 UTC (rev 4486)
@@ -42,7 +42,7 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
-from numpy import sqrt, log, asarray, newaxis, all, dot, float64, eye
+from numpy import sqrt, log, asarray, newaxis, all, dot, float64, exp, eye
from scipy import linalg
class Rbf(object):
@@ -58,7 +58,7 @@
return sqrt((1.0/self.epsilon*r)**2 + 1)
elif self.function.lower() == 'inverse multiquadric':
return 1.0/sqrt((1.0/self.epsilon*r)**2 + 1)
- elif self.function.lower() == 'gausian':
+ elif self.function.lower() == 'gaussian':
return exp(-(self.epsilon*r)**2)
elif self.function.lower() == 'cubic':
return r**3
@@ -84,7 +84,7 @@
::
'multiquadric': sqrt((self.epsilon*r)**2 + 1)
'inverse multiquadric': 1.0/sqrt((self.epsilon*r)**2 + 1)
- 'gausian': exp(-(self.epsilon*r)**2)
+ 'gaussian': exp(-(self.epsilon*r)**2)
'cubic': r**3
'quintic': r**5
'thin-plate': r**2 * log(r)
More information about the Scipy-svn
mailing list