improver.ensemble_copula_coupling.numba_utilities module
This module defines the optional numba utilities for Ensemble Copula Coupling plugins.
- fast_interp_same_x(x, xp, fp)
For each row i of fp, do the equivalent of np.interp(x, xp, fp[i, :]). :type x:
ndarray
:param x: 1-D array :type xp:ndarray
:param xp: 1-D array, sorted in non-decreasing order :type fp:ndarray
:param fp: 2-D array with len(xp) columns- Return type:
- Returns:
- 2-D array with shape (len(fp), len(x)), with each row i equal to
np.interp(x, xp, fp[i, :])
- fast_interp_same_y(x, xp, fp)
For each row i of xp, do the equivalent of np.interp(x, xp[i], fp). :type x:
ndarray
:param x: 1-d array :type xp:ndarray
:param xp: n * m array, each row must be in non-decreasing order :type fp:ndarray
:param fp: 1-d array with length m- Return type:
- Returns:
n * len(x) array where each row i is equal to np.interp(x, xp[i], fp)