Convolution Kernels — Astropy v1.0.4 - het
het.as.utexas.edu › HET › SoftwareSep 24, 2015 · 1D Kernels¶. One application of filtering is to smooth noisy data. In this case we consider a noisy Lorentz curve: >>> import numpy as np >>> from astropy.modeling.models import Lorentz1D >>> from astropy.convolution import convolve, Gaussian1DKernel, Box1DKernel >>> lorentz = Lorentz1D (1, 0, 1) >>> x = np. linspace (-5, 5, 100) >>> data_1D = lorentz (x) + 0.1 * (np. random. rand (100)-0.5)
numpy.arange — NumPy v1.22 Manual
numpy.org › reference › generatednumpy.arange. ¶. Return evenly spaced values within a given interval. Values are generated within the half-open interval [start, stop) (in other words, the interval including start but excluding stop ). For integer arguments the function is equivalent to the Python built-in range function, but returns an ndarray rather than a list.
NumPy, Matplotlib and SciPy
portal.tacc.utexas.edu › documents › 10157/1119900/3How to Create an Array examples/3 numpy/array.py importnumpy as np a = np.array([2, 3, 12]) #Createfromlist a = np.arange(10) #0,1,2,3,4,...,9 b = np.arange (0,10,2 ...
numpy.arange — NumPy v1.18 Manual
numpy.org › reference › generatedMay 24, 2020 · numpy.arange([start, ]stop, [step, ]dtype=None) ¶. Return evenly spaced values within a given interval. Values are generated within the half-open interval [start, stop) (in other words, the interval including start but excluding stop ). For integer arguments the function is equivalent to the Python built-in range function, but returns an ...