src/ObjectiveFunc.cpp
float CalcObjFunc(std::vector<float> *obs, std::vector<float> *sim,
                  OBJECTIVES obj) {

  switch (obj) {
  case OBJECTIVE_NSCE:
    return CalcNSCE(obs, sim);
  case OBJECTIVE_CC:
    return CalcCC(obs, sim);
  case OBJECTIVE_SSE:
    return CalcSSE(obs, sim);
  default:
    return 0;
  }
}
// This is the main function for calculating objective functions, everything
// passes through here first.
This is the main function for calculating objective functions, everything
passes through here first.
This is the main function for calculating objective functions everything passes through here first .
float CalcObjFunc(std::vector<float> *obs, std::vector<float> *sim,
                  OBJECTIVES obj) {
  switch (obj) {
  case OBJECTIVE_NSCE:
    return CalcNSCE(obs, sim);
  case OBJECTIVE_CC:
    return CalcCC(obs, sim);
  case OBJECTIVE_SSE:
    return CalcSSE(obs, sim);
  default:
    return 0;
  }
}
float CalcObjFunc ( std :: vector < float > * obs , std :: vector < float > * sim , OBJECTIVES obj ) { switch ( obj ) { case OBJECTIVE_NSCE : return CalcNSCE ( obs , sim ) ; case OBJECTIVE_CC : return CalcCC ( obs , sim ) ; case OBJECTIVE_SSE : return CalcSSE ( obs , sim ) ; default : return 0 ; } }
This is the main function for calculating objective functions, everything
passes through here first.
This is the main function for calculating objective functions everything passes through here first .