splinebox.basis_functions.Exponential.
__call__#
- Exponential.__call__(t, derivative=0)#
Evaluate the function at position(s) t. You can optionally pass derivative=1 or 2 to obtain the respective derivative(s).
Evaluate the function at position(s) t.
- Parameters:
- tfloat or numpy.array
The points where the function should be evaluated.
- derivative[0, 1, 2], default = 0
Whether to evaluate the function (0) or its first (1) or second (2) derivative.
- Returns:
- ynumpy.array
Values of the function or its first or second derivative at position(s) t.
Examples
>>> basis_function = splinebox.basis_functions.B1() >>> basis_function(0.5) 0.5
>>> t = np.array([-0.2, 0.5]) >>> basis_function(t, derivative=1) array([ 1., -1.])