# scipy 1.18.1 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input
Gaussian approximation to B-spline basis function of order n.

    Parameters
    ----------
    x : array_like
        a knot vector
    n : int
        The order of the spline. Must be non-negative, i.e., n >= 0

    Returns
    -------
    res : ndarray
        B-spline basis function values approximated by a zero-mean Gaussian
        function.

    Notes
    -----
    The B-spline basis function can be approximated well by a zero-mean
    Gaussian function with standard-deviation equal to :math:`\sigma=(n+1)/12`
    for large `n` :

    .. math::  \frac{1}{\sqrt {2\pi\sigma^2}}exp(-\frac{x^2}{2\sigma})

    References
    ----------
    .. [1] Bouma H., Vilanova A., Bescos J.O., ter Haar Romeny B.M., Gerritsen
       F.A. (2007) Fast and Accurate Gaussian Derivatives Based on B-Splines. In:
       Sgallari F., Murli A., Paragios N. (eds) Scale Space and Variational
       Methods in Computer Vision. SSVM 2007. Lecture Notes in Computer
       Science, vol 4485. Springer, Berlin, Heidelberg.

    Examples
    --------
    We can calculate B-Spline basis functions approximated by a Gaussian
    distribution:

    >>> import numpy as np
    >>> from scipy.signal import gauss_spline
    >>> knots = np.array([-1.0, 0.0, -1.0])
    >>> gauss_spline(knots, 3)
    array([0.15418033, 0.6909883, 0.15418033])  # may vary

    
=== parse numpydoc
short_description: 'Gaussian approximation to B-spline basis function of order n.'
blank_after_short_description: True
blank_after_long_description: False
style: numpydoc
- DocstringParam
  description: 'a knot vector'
  kind: param
  key: 'param'
  arg_name: 'x'
  type_name: 'array_like'
  is_optional: False
- DocstringParam
  description: 'The order of the spline. Must be non-negative, i.e., n >= 0'
  kind: param
  key: 'param'
  arg_name: 'n'
  type_name: 'int'
  is_optional: False
- DocstringReturns
  description: |
    B-spline basis function values approximated by a zero-mean Gaussian
    function.
  kind: returns
  key: 'returns'
  type_name: 'ndarray'
  is_generator: False
  return_name: 'res'
- DocstringMeta
  description: |
    The B-spline basis function can be approximated well by a zero-mean
    Gaussian function with standard-deviation equal to :math:`\sigma=(n+1)/12`
    for large `n` :
    
    .. math::  \frac{1}{\sqrt {2\pi\sigma^2}}exp(-\frac{x^2}{2\sigma})
  kind: text
  key: 'notes'
  title: 'Notes'
- DocstringMeta
  description: |
    .. [1] Bouma H., Vilanova A., Bescos J.O., ter Haar Romeny B.M., Gerritsen
       F.A. (2007) Fast and Accurate Gaussian Derivatives Based on B-Splines. In:
       Sgallari F., Murli A., Paragios N. (eds) Scale Space and Variational
       Methods in Computer Vision. SSVM 2007. Lecture Notes in Computer
       Science, vol 4485. Springer, Berlin, Heidelberg.
  kind: text
  key: 'references'
  title: 'References'
- DocstringExample
  description: |
    We can calculate B-Spline basis functions approximated by a Gaussian
    distribution:
  kind: examples
  key: 'examples'
  snippet: '>>> import numpy as np'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> from scipy.signal import gauss_spline'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> knots = np.array([-1.0, 0.0, -1.0])'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> gauss_spline(knots, 3)
    array([0.15418033, 0.6909883, 0.15418033])  # may vary
=== detect
numpydoc
=== compose numpydoc
Gaussian approximation to B-spline basis function of order n.

Parameters
----------
x : array_like
    a knot vector
n : int
    The order of the spline. Must be non-negative, i.e., n >= 0

Returns
-------
res : ndarray
    B-spline basis function values approximated by a zero-mean Gaussian
    function.

Notes
-----
The B-spline basis function can be approximated well by a zero-mean
Gaussian function with standard-deviation equal to :math:`\sigma=(n+1)/12`
for large `n` :

.. math::  \frac{1}{\sqrt {2\pi\sigma^2}}exp(-\frac{x^2}{2\sigma})

References
----------
.. [1] Bouma H., Vilanova A., Bescos J.O., ter Haar Romeny B.M., Gerritsen
   F.A. (2007) Fast and Accurate Gaussian Derivatives Based on B-Splines. In:
   Sgallari F., Murli A., Paragios N. (eds) Scale Space and Variational
   Methods in Computer Vision. SSVM 2007. Lecture Notes in Computer
   Science, vol 4485. Springer, Berlin, Heidelberg.

Examples
--------
We can calculate B-Spline basis functions approximated by a Gaussian
distribution:

>>> import numpy as np
>>> from scipy.signal import gauss_spline
>>> knots = np.array([-1.0, 0.0, -1.0])
>>> gauss_spline(knots, 3)
array([0.15418033, 0.6909883, 0.15418033])  # may vary
