SmartSwitch/sswSlowClassifier.cpp
//******************************************************************************
//******************************************************************************
//******************************************************************************
// Return a string that can be used for a show.
Return a string that can be used for a show.
Return a string that can be used for a show .
char* SlowClassifier::asShowString(char* aBuffer)
{
   sprintf(aBuffer, "%4d $ %8.4f $ %6.4f %6.4f %6.4f %6.4f A %6.4f $ %1d %1d %1d %1d $ %1d" ,
      mCount,
      mValue,
      mThresholderM2.mFuzzyConfidence.mX,
      mThresholderM1.mFuzzyConfidence.mX,
      mThresholderP1.mFuzzyConfidence.mX,
      mThresholderP2.mFuzzyConfidence.mX,
      mFuzzyConfidence.mX,
      mAboveFlagM2,
      mAboveFlagM1,
      mAboveFlagP1,
      mAboveFlagP2,
      mClass);
   if (mChangeFlag)
   {
      strcat(aBuffer, " CHANGE");
   }
   return aBuffer;
}
char * SlowClassifier :: asShowString ( char * aBuffer ) { sprintf ( aBuffer , " " , mCount , mValue , mThresholderM2 . mFuzzyConfidence . mX , mThresholderM1 . mFuzzyConfidence . mX , mThresholderP1 . mFuzzyConfidence . mX , mThresholderP2 . mFuzzyConfidence . mX , mFuzzyConfidence . mX , mAboveFlagM2 , mAboveFlagM1 , mAboveFlagP1 , mAboveFlagP2 , mClass ) ; if ( mChangeFlag ) { strcat ( aBuffer , " " ) ; } return aBuffer ; }
Return a string that can be used for a show.
Return a string that can be used for a show .