From 173384a6fbe3a782f52ef30a8ffdc0a315a58880 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Fri, 6 Mar 2009 09:09:45 +0000 Subject: For kaiser, allow beta to be specified as an integer. --- numpy/lib/function_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/function_base.py') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index c6731a945..4eabba545 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -2562,7 +2562,7 @@ def kaiser(M,beta): from numpy.dual import i0 n = arange(0,M) alpha = (M-1)/2.0 - return i0(beta * sqrt(1-((n-alpha)/alpha)**2.0))/i0(beta) + return i0(beta * sqrt(1-((n-alpha)/alpha)**2.0))/i0(float(beta)) def sinc(x): """ -- cgit v1.2.1