本文整理汇总了C++中ANNsampStat::max方法的典型用法代码示例。如果您正苦于以下问题:C++ ANNsampStat::max方法的具体用法?C++ ANNsampStat::max怎么用?C++ ANNsampStat::max使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ANNsampStat
的用法示例。
在下文中一共展示了ANNsampStat::max方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: print_one_stat
// print a single statistic
void print_one_stat(char *title, ANNsampStat s, double div)
{
cout << title << "= [ ";
cout.width(9); cout << s.mean()/div << " : ";
cout.width(9); cout << s.stdDev()/div << " ]<";
cout.width(9); cout << s.min()/div << " , ";
cout.width(9); cout << s.max()/div << " >\n";
}
示例2: print_one_stat
// print a single statistic
//void print_one_stat(char *title, ANNsampStat s, double div)
void print_one_stat( const std::string & title, ANNsampStat s, double div)
{
std::cout << title.c_str() << "= [ ";
std::cout.width(9); std::cout << s.mean()/div << " : ";
std::cout.width(9); std::cout << s.stdDev()/div << " ]<";
std::cout.width(9); std::cout << s.min()/div << " , ";
std::cout.width(9); std::cout << s.max()/div << " >\n";
}
示例3: print_one_stat
// print a single statistic
void print_one_stat(char *title, ANNsampStat s, double div)
{
__android_log_print(ANDROID_LOG_VERBOSE, "HUMANSENSE", "%s= [ ", title);
__android_log_print(ANDROID_LOG_VERBOSE, "HUMANSENSE", "%9.4G : ", s.mean()/div);
__android_log_print(ANDROID_LOG_VERBOSE, "HUMANSENSE", "%9.4G ]< ", s.stdDev()/div);
__android_log_print(ANDROID_LOG_VERBOSE, "HUMANSENSE", "%9.4G , ", s.min()/div);
__android_log_print(ANDROID_LOG_VERBOSE, "HUMANSENSE", "%9.4G >\n", s.max()/div);
/*
cout << title << "= [ ";
cout.width(9); cout << s.mean()/div << " : ";
cout.width(9); cout << s.stdDev()/div << " ]<";
cout.width(9); cout << s.min()/div << " , ";
cout.width(9); cout << s.max()/div << " >\n";
*/
}