e3x.nn.functions.gaussian.basic_gaussian

e3x.nn.functions.gaussian.basic_gaussian(x, num, limit=1.0)[source]

Basic Gaussian basis functions.

Computes the basis functions

\[\mathrm{gaussian}_k(x) = \exp\left(-\frac{\sqrt{2K}(K-1)}{l} \left(x-\frac{kl}{K-1}\right)^2\right)\]

where \(k=0 \dots K-1\) with \(K\) = num and \(l\) = limit.

Plot for \(K = 5\) and \(l = 1\):

../_images/e3x.nn.functions.gaussian.basic_gaussian_0_0.svg
Parameters:
Return type:

<class 'Float[Array, '... num']'>

Returns:

Value of all basis functions for all values in x. The output shape follows the input, with an additional dimension of size num appended.