src/ModelParameterInfoTypes.cpp
dvar_vector NumberVectorInfo::calcLogPriors(dvar_vector & pv){
    RETURN_ARRAYS_INCREMENT();
    if (debug) rpt::echo<<"starting NumberVectorInfo::calcLogPriors(pv)"<<this<<tb<<name<<endl;
    dvar_vector lps(pv.indexmin(),pv.indexmax());
    lps.initialize();
    if (ppNIs) {
        dvariable x;
        for (int i=pv.indexmin();i<=pv.indexmax();i++) {
            x = pv(i);//have to copy pv(i) )
            lps(i) = ppNIs[i-1]->calcLogPrior(x);
        }
    }
    if (debug) {
        rpt::echo<<"logPriors: "<<lps<<endl;
        rpt::echo<<"finished NumberVectorInfo::calcLogPriors(pv)"<<this<<tb<<name<<endl;
    }
    RETURN_ARRAYS_DECREMENT();
    return lps;
}
/**
 * Calculates a vector of the log-scale prior probability based on an input vector of values.
 * 
 * The input values are presumably from the associated parameter values, 
 * but should be on the "arithmetic" scale.
 * 
 * @param x - the input dvar_vector on the arithmetic scale, presumably based on the associated parameters
 * 
 * @return - the log-scale prior, as a dvar_vector
 */
Calculates a vector of the log-scale prior probability based on an input vector of values.

The input values are presumably from the associated parameter values,
but should be on the "arithmetic" scale.

@param x - the input dvar_vector on the arithmetic scale, presumably based on the associated parameters

@return - the log-scale prior, as a dvar_vector
Calculates a vector of the log - scale prior probability based on an input vector of values . The input values are presumably from the associated parameter values but should be on the " arithmetic " scale . @param x - the input dvar_vector on the arithmetic scale presumably based on the associated parameters @return - the log - scale prior as a dvar_vector
dvar_vector NumberVectorInfo::calcLogPriors(dvar_vector & pv){
    RETURN_ARRAYS_INCREMENT();
    if (debug) rpt::echo<<"starting NumberVectorInfo::calcLogPriors(pv)"<<this<<tb<<name<<endl;
    dvar_vector lps(pv.indexmin(),pv.indexmax());
    lps.initialize();
    if (ppNIs) {
        dvariable x;
        for (int i=pv.indexmin();i<=pv.indexmax();i++) {
            x = pv(i);
            lps(i) = ppNIs[i-1]->calcLogPrior(x);
        }
    }
    if (debug) {
        rpt::echo<<"logPriors: "<<lps<<endl;
        rpt::echo<<"finished NumberVectorInfo::calcLogPriors(pv)"<<this<<tb<<name<<endl;
    }
    RETURN_ARRAYS_DECREMENT();
    return lps;
}
dvar_vector NumberVectorInfo :: calcLogPriors ( dvar_vector & pv ) { RETURN_ARRAYS_INCREMENT ( ) ; if ( debug ) rpt :: echo << " " << this << tb << name << endl ; dvar_vector lps ( pv . indexmin ( ) , pv . indexmax ( ) ) ; lps . initialize ( ) ; if ( ppNIs ) { dvariable x ; for ( int i = pv . indexmin ( ) ; i <= pv . indexmax ( ) ; i ++ ) { x = pv ( i ) ; lps ( i ) = ppNIs [ i - 1 ] -> calcLogPrior ( x ) ; } } if ( debug ) { rpt :: echo << " " << lps << endl ; rpt :: echo << " " << this << tb << name << endl ; } RETURN_ARRAYS_DECREMENT ( ) ; return lps ; }
Calculates a vector of the log-scale prior probability based on an input vector of values.
Calculates a vector of the log - scale prior probability based on an input vector of values .
//have to copy pv(i) )