src/ModelParameterInfoTypes.cpp
dvector BoundedVectorInfo::drawInitVals(random_number_generator& rng, double vif){
    if (debug) rpt::echo<<"starting BoundedVectorInfo::drawInitVals(random_number_generator& rng) for "<<name<<endl;
    dvector smpl  = 1.0*initVals;
    if (resample&&(phase>0)&&(pMPI->canSample())) {
        for (int i=1;i<=N;i++) smpl(i) = pMPI->drawSample(rng,priorParams,priorConsts);
    }
    if (debug) {
        rpt::echo<<phase<<tb<<pMPI->canSample()<<endl;
        rpt::echo<<"initVals: "<<initVals<<endl<<"samples: "<<smpl<<endl;
        rpt::echo<<"finished BoundedVectorInfo::drawInitVals(random_number_generator& rng) for "<<name<<endl;
    }
    return smpl;
}
/**
 * Draw a random sample from a prior defined on the arithmetic scale. \n
 * If phase<0, return initVals rather than resampling.
 * 
 * @param rng - random number generator
 * @param vif - variance inflation factor
 * 
 * @return - dvector of resampled values on the arithmetic scale
*/
Draw a random sample from a prior defined on the arithmetic scale. \n
If phase<0, return initVals rather than resampling.

@param rng - random number generator
@param vif - variance inflation factor

@return - dvector of resampled values on the arithmetic scale
Draw a random sample from a prior defined on the arithmetic scale . \ n If phase<0 return initVals rather than resampling . @param rng - random number generator @param vif - variance inflation factor @return - dvector of resampled values on the arithmetic scale
dvector BoundedVectorInfo::drawInitVals(random_number_generator& rng, double vif){
    if (debug) rpt::echo<<"starting BoundedVectorInfo::drawInitVals(random_number_generator& rng) for "<<name<<endl;
    dvector smpl  = 1.0*initVals;
    if (resample&&(phase>0)&&(pMPI->canSample())) {
        for (int i=1;i<=N;i++) smpl(i) = pMPI->drawSample(rng,priorParams,priorConsts);
    }
    if (debug) {
        rpt::echo<<phase<<tb<<pMPI->canSample()<<endl;
        rpt::echo<<"initVals: "<<initVals<<endl<<"samples: "<<smpl<<endl;
        rpt::echo<<"finished BoundedVectorInfo::drawInitVals(random_number_generator& rng) for "<<name<<endl;
    }
    return smpl;
}
dvector BoundedVectorInfo :: drawInitVals ( random_number_generator & rng , double vif ) { if ( debug ) rpt :: echo << " " << name << endl ; dvector smpl = 1.0 * initVals ; if ( resample && ( phase > 0 ) && ( pMPI -> canSample ( ) ) ) { for ( int i = 1 ; i <= N ; i ++ ) smpl ( i ) = pMPI -> drawSample ( rng , priorParams , priorConsts ) ; } if ( debug ) { rpt :: echo << phase << tb << pMPI -> canSample ( ) << endl ; rpt :: echo << " " << initVals << endl << " " << smpl << endl ; rpt :: echo << " " << name << endl ; } return smpl ; }
Draw a random sample from a prior defined on the arithmetic scale.
Draw a random sample from a prior defined on the arithmetic scale .