src/ModelParameterInfoTypes.cpp
dvariable NumberInfo::calcLogPrior(prevariable& x){
    RETURN_ARRAYS_INCREMENT();
    if (debug) rpt::echo<<"starting NumberInfo::calcLogPrior(prevariable& x)"<<this<<endl;
    dvariable val = pMPI->calcLogPDF(x,priorParams,priorConsts);
    if (debug) {
        if (pMPI->getNumParams()) rpt::echo<<"priorParams = "<<priorParams<<tb;
        if (pMPI->getNumConsts()) rpt::echo<<"priorConsts = "<<priorConsts<<tb;
        rpt::echo<<endl;
        rpt::echo<<"x = "<<x<<"; ln(pdf(x)) = "<<val<<endl;
        rpt::echo<<"finished NumberInfo::calcLogPrior(prevariable& x)"<<this<<endl;
    }
    RETURN_ARRAYS_DECREMENT();
    return val;
}
/**
 * Calculates the log-scale prior probability based on an input value.
 * 
 * The input value is on the arithmetic scale, but is presumably from the associated parameter value.
 * 
 * @param x - the arithmetic-scale input value, presumably based on the associated parameter
 * 
 * @return - the log-scale prior, as a dvariable
 */
Calculates the log-scale prior probability based on an input value.

The input value is on the arithmetic scale, but is presumably from the associated parameter value.

@param x - the arithmetic-scale input value, presumably based on the associated parameter

@return - the log-scale prior, as a dvariable
Calculates the log - scale prior probability based on an input value . The input value is on the arithmetic scale but is presumably from the associated parameter value . @param x - the arithmetic - scale input value presumably based on the associated parameter @return - the log - scale prior as a dvariable
dvariable NumberInfo::calcLogPrior(prevariable& x){
    RETURN_ARRAYS_INCREMENT();
    if (debug) rpt::echo<<"starting NumberInfo::calcLogPrior(prevariable& x)"<<this<<endl;
    dvariable val = pMPI->calcLogPDF(x,priorParams,priorConsts);
    if (debug) {
        if (pMPI->getNumParams()) rpt::echo<<"priorParams = "<<priorParams<<tb;
        if (pMPI->getNumConsts()) rpt::echo<<"priorConsts = "<<priorConsts<<tb;
        rpt::echo<<endl;
        rpt::echo<<"x = "<<x<<"; ln(pdf(x)) = "<<val<<endl;
        rpt::echo<<"finished NumberInfo::calcLogPrior(prevariable& x)"<<this<<endl;
    }
    RETURN_ARRAYS_DECREMENT();
    return val;
}
dvariable NumberInfo :: calcLogPrior ( prevariable & x ) { RETURN_ARRAYS_INCREMENT ( ) ; if ( debug ) rpt :: echo << " " << this << endl ; dvariable val = pMPI -> calcLogPDF ( x , priorParams , priorConsts ) ; if ( debug ) { if ( pMPI -> getNumParams ( ) ) rpt :: echo << " " << priorParams << tb ; if ( pMPI -> getNumConsts ( ) ) rpt :: echo << " " << priorConsts << tb ; rpt :: echo << endl ; rpt :: echo << " " << x << " " << val << endl ; rpt :: echo << " " << this << endl ; } RETURN_ARRAYS_DECREMENT ( ) ; return val ; }
Calculates the log-scale prior probability based on an input value.
Calculates the log - scale prior probability based on an input value .