def optdelta(UY, UX, S, numintervals, ldeltamin, ldeltamax, REML=False):
    """
    optdelta(MatrixXd const & UY, MatrixXd const & UX, MatrixXd const & S, int numintervals, double ldeltamin, double ldeltamax, bool REML=False) -> double

    Parameters
    ----------
    UY: MatrixXd const &
    UX: MatrixXd const &
    S: MatrixXd const &
    numintervals: int
    ldeltamin: double
    ldeltamax: double
    REML: bool

    optdelta(MatrixXd const & UY, MatrixXd const & UX, MatrixXd const & S, int numintervals, double ldeltamin, double ldeltamax) -> double

    Parameters
    ----------
    UY: MatrixXd const &
    UX: MatrixXd const &
    S: MatrixXd const &
    numintervals: int
    ldeltamin: double
    ldeltamax: double

    """
    return _core.optdelta(UY, UX, S, numintervals, ldeltamin, ldeltamax, REML)