

def interpolate_basis(self, basis, dt, dt_max, norm=True):
    (L, B) = basis.shape
    t_int = np.arange(0.0, dt_max, step=dt)
    t_bas = np.linspace(0.0, dt_max, dt_max)
    ibasis = np.zeros((len(t_int), B))
    for b in np.arange(B):
        ibasis[:, b] = np.interp(t_int, t_bas, basis[:, b])
    if norm:
        ibasis /= (dt * np.sum(ibasis, axis=0))
    if (not self.allow_instantaneous):
        ibasis = np.vstack((np.zeros((1, B)), ibasis))
    return ibasis

dataset/ETHPy150Open slinderman/pyhawkes/pyhawkes/utils/basis.py Basis.interpolate_basis/VarMisuse@55/69 `L`->`dt_max`