Weight Function Interface (i_weight_function)¶
- class pypint.integrators.weight_function_providers.i_weight_function.IWeightFunction[source]¶
Bases: builtins.object
Provider for integration weights functions.
This is an abstract interface for providers of integration weights functions.
- evaluate(nodes, interval=None)[source]¶
Computes weights for given nodes based on set weight function.
Parameters: - nodes (numpy.ndarray) – Array of nodes to compute weights for.
- interval (numpy.ndarray or None) – Array with the interval boundaries. If None the boundaries of the given nodes are used.
Returns: computed weights – Vector of computed weights.
Return type: numpy.ndarray
Notes
The implementation and behaviour must and will be defined by specializations of this interface.
- init(*args, **kwargs)[source]¶
Sets and defines the weights function.
Notes
The implementation and behaviour must and will be defined by specializations of this interface. Implementations are allowed to add further named arguments.
- __weakref__¶
list of weak references to the object (if defined)