src/ModelParameterInfoTypes.cpp
double NumberInfo::drawInitVal(random_number_generator& rng, double vif){
    if (debug) rpt::echo<<"starting NumberInfo::drawSample(random_number_generator& rng, vif)"<<this<<endl;
    double smpl  = initVal;
    if (resample&&(phase>0)&&(pMPI->canSample())) {
        smpl = pMPI->drawSample(rng,priorParams,priorConsts);
    }
    if (debug) {
        rpt::echo<<phase<<tb<<pMPI->canSample()<<tb<<initVal<<tb<<smpl<<endl;
        rpt::echo<<"finished NumberInfo::drawSample(random_number_generator& rng,vif)"<<this<<endl;
    }
    return smpl;
}
/**
 * Draws a random value on the arithmetic scale based on the specified prior probability distribution.
 * 
 * Note that this DOES NOT update initVal.
 * If the parameter estimation phase is \< 0, the value for initVal is returned.
 * 
 * @param rng - a reference to a random number generator
 * @param vif - the variance inflation factor
 * 
 * @return - the random value, or value of initVal
 */
Draws a random value on the arithmetic scale based on the specified prior probability distribution.

Note that this DOES NOT update initVal.
If the parameter estimation phase is \< 0, the value for initVal is returned.

@param rng - a reference to a random number generator
@param vif - the variance inflation factor

@return - the random value, or value of initVal
Draws a random value on the arithmetic scale based on the specified prior probability distribution . Note that this DOES NOT update initVal . If the parameter estimation phase is \ < 0 the value for initVal is returned . @param rng - a reference to a random number generator @param vif - the variance inflation factor @return - the random value or value of initVal
double NumberInfo::drawInitVal(random_number_generator& rng, double vif){
    if (debug) rpt::echo<<"starting NumberInfo::drawSample(random_number_generator& rng, vif)"<<this<<endl;
    double smpl  = initVal;
    if (resample&&(phase>0)&&(pMPI->canSample())) {
        smpl = pMPI->drawSample(rng,priorParams,priorConsts);
    }
    if (debug) {
        rpt::echo<<phase<<tb<<pMPI->canSample()<<tb<<initVal<<tb<<smpl<<endl;
        rpt::echo<<"finished NumberInfo::drawSample(random_number_generator& rng,vif)"<<this<<endl;
    }
    return smpl;
}
double NumberInfo :: drawInitVal ( random_number_generator & rng , double vif ) { if ( debug ) rpt :: echo << " " << this << endl ; double smpl = initVal ; if ( resample && ( phase > 0 ) && ( pMPI -> canSample ( ) ) ) { smpl = pMPI -> drawSample ( rng , priorParams , priorConsts ) ; } if ( debug ) { rpt :: echo << phase << tb << pMPI -> canSample ( ) << tb << initVal << tb << smpl << endl ; rpt :: echo << " " << this << endl ; } return smpl ; }
Draws a random value on the arithmetic scale based on the specified prior probability distribution.
Draws a random value on the arithmetic scale based on the specified prior probability distribution .