darsia.KernelInterpolation#
- class KernelInterpolation(kernel, supports=None, values=None)[source]#
Bases:
ModelGeneral kernel-based interpolation.
Setup of the kernel-based interpolation.
- Parameters:
- kernel
darsia.BaseKernel Kernel.
- supports
np.ndarray Support points.
- values
np.ndarray Goal points.
- kernel
- Raises:
AssertionErrorIf the input data is not compatible, i.e., the number of supports and values does not match.
Methods
calibrate()Calibration routine of model.
Setup of linear kernel problem.
update([kernel, supports, values, append])Update kernel and interpolation weights.
Update interpolation weights.
update_kernel(kernel)Update kernel.
update_model_parameters(parameters[, dofs])Attributes
Kernel.
Support points.
Goal points.
Number of support points.
Interpolation weights.
- update(kernel=None, supports=None, values=None, append=False)[source]#
Update kernel and interpolation weights.
- Parameters:
- kernel
darsia.BaseKernel,optional Kernel.
- supports
np.ndarray,optional Support points.
- values
np.ndarray,optional Goal points.
- appendbool
Flag to append new data to existing data.
- kernel
- update_interpolation()[source]#
Update interpolation weights.
- Raises:
AssertionErrorIf the input data is not compatible, i.e., the number of supports and values does not match.
- update_kernel(kernel)[source]#
Update kernel.
- Parameters:
- kernel
darsia.BaseKernel Kernel.
- kernel
- interpolation_weights#
Interpolation weights.
- kernel#
Kernel.
- num_supports#
Number of support points.
- supports#
Support points.
- values#
Goal points.