INNER CODE UNIT · Python

nderiv

XMU-Kuangnan-Fang-Team/GENetLib · GENetLib/BsplineFunc.py:40

            if nderiv > 0 and nderiv == norder - 1:
                raise ValueError(
                    f"Penalty matrix cannot be evaluated for derivative of order {nderiv} for B-splines of order {norder}"
                )
            bwtlist = Lfdobj["bwtlist"]
            isintLfd = True
            if nderiv > 0:
                for ideriv in range(1, nderiv + 1):
                    fdj = bwtlist[ideriv - 1]
                    if fdj is not None and not np.all(fdj["coefs"] == 0):
                        isintLfd = False
                        break
            intbreaks = np.concatenate(([rng[0]], params, [rng[1]]))
            index = (intbreaks >= rng[0]) & (intbreaks <= rng[1])
            intbreaks = intbreaks[index]
            uniquebreaks = np.min(np.diff(intbreaks)) > 0
            if (
                isintLfd

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…