

def create_basis(self):
    ibasis = np.eye(self.B)
    if (not self.allow_instantaneous):
        ibasis = np.vstack((np.zeros((1, self.B)), ibasis))
    assert (ibasis.shape == (self.L, self.B))
    if self.norm:
        ibasis /= (self.dt * np.sum(ibasis, axis=0))
    return ibasis

dataset/ETHPy150Open slinderman/pyhawkes/pyhawkes/utils/basis.py IdentityBasis.create_basis/original