src/ModelConstants.cpp
int tcsam::getErrorScaleType(adstring s){
    if (s==STR_VAR) return SCLTYPE_VAR;
    if (s==STR_STD) return SCLTYPE_STD;
    if (s==STR_CV)  return SCLTYPE_CV;
    std::cout<<"Unrecognized scale type '"<<s<<"'"<<std::endl;
    std::cout<<"Aborting..."<<std::endl;
    exit(-1);
    return 0;
}
/**
 * Converts the error scale type from adstring to integer version.
 * @param s - the adstring version
 * @return  - the integer version
 */
Converts the error scale type from adstring to integer version.
@param s - the adstring version
@return  - the integer version
Converts the error scale type from adstring to integer version . @param s - the adstring version @return - the integer version
int tcsam::getErrorScaleType(adstring s){
    if (s==STR_VAR) return SCLTYPE_VAR;
    if (s==STR_STD) return SCLTYPE_STD;
    if (s==STR_CV)  return SCLTYPE_CV;
    std::cout<<"Unrecognized scale type '"<<s<<"'"<<std::endl;
    std::cout<<"Aborting..."<<std::endl;
    exit(-1);
    return 0;
}
int tcsam :: getErrorScaleType ( adstring s ) { if ( s == STR_VAR ) return SCLTYPE_VAR ; if ( s == STR_STD ) return SCLTYPE_STD ; if ( s == STR_CV ) return SCLTYPE_CV ; std :: cout << " " << s << " " << std :: endl ; std :: cout << " " << std :: endl ; exit ( -1 ) ; return 0 ; }
Converts the error scale type from adstring to integer version.
Converts the error scale type from adstring to integer version .