interpolate
interpolate#
- interpolate(resampled: Union[jax.Array, numpy.ndarray, numpy.bool_, numpy.number, bool, int, float, complex], sampled: Union[jax.Array, numpy.ndarray, numpy.bool_, numpy.number, bool, int, float, complex], s_parameters: Union[jax.Array, numpy.ndarray, numpy.bool_, numpy.number, bool, int, float, complex]) jax.Array [source]#
Returns the result of a cubic interpolation for a given frequency range.
Deprecated since version 0.7.0: interpolate will be removed in simphony 0.8.0, it is replaced by resample.
- Parameters
output_freq (ArrayLike) – The desired frequency range for a given input to be interpolated to.
input_freq (ArrayLike) – A frequency array, indexed matching the given s_parameters.
s_parameters (ArrayLike) – S-parameters for each frequency given in input_freq.
- Returns
result – The values of the interpolated function (fitted to the input s-parameters) evaluated at the
output_freq
frequencies.- Return type
Array
Deprecated since version 0.7.0: This will be removed in 0.8.0. Use the resample function instead