src/ModelParameterInfoTypes.cpp
void NumberInfo::setPriorType(adstring & prior){
    if (debug) rpt::echo<<"starting NumberInfo::setPriorType(adstring prior)"<<this<<endl;
    if (pMPI) delete pMPI;
    pMPI = ModelPDFInfo::getInfo(prior);
    if (pMPI) {
        if (pMPI->getNumParams()>0) priorParams.allocate(1,pMPI->getNumParams());
        if (pMPI->getNumConsts()>0) priorConsts.allocate(1,pMPI->getNumConsts());
    }
    if (debug) rpt::echo<<"finished NumberInfo::setPriorType(adstring prior)"<<this<<endl;
}
/**
 * Sets the prior type, based on an adstring value.
 * 
 * @param prior - the prior type, as an adstring
 */
Sets the prior type, based on an adstring value.

@param prior - the prior type, as an adstring
Sets the prior type based on an adstring value . @param prior - the prior type as an adstring
void NumberInfo::setPriorType(adstring & prior){
    if (debug) rpt::echo<<"starting NumberInfo::setPriorType(adstring prior)"<<this<<endl;
    if (pMPI) delete pMPI;
    pMPI = ModelPDFInfo::getInfo(prior);
    if (pMPI) {
        if (pMPI->getNumParams()>0) priorParams.allocate(1,pMPI->getNumParams());
        if (pMPI->getNumConsts()>0) priorConsts.allocate(1,pMPI->getNumConsts());
    }
    if (debug) rpt::echo<<"finished NumberInfo::setPriorType(adstring prior)"<<this<<endl;
}
void NumberInfo :: setPriorType ( adstring & prior ) { if ( debug ) rpt :: echo << " " << this << endl ; if ( pMPI ) delete pMPI ; pMPI = ModelPDFInfo :: getInfo ( prior ) ; if ( pMPI ) { if ( pMPI -> getNumParams ( ) > 0 ) priorParams . allocate ( 1 , pMPI -> getNumParams ( ) ) ; if ( pMPI -> getNumConsts ( ) > 0 ) priorConsts . allocate ( 1 , pMPI -> getNumConsts ( ) ) ; } if ( debug ) rpt :: echo << " " << this << endl ; }
Sets the prior type, based on an adstring value.
Sets the prior type based on an adstring value .