This repository has been archived on 2026-03-28. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
eodev/src/utils/doStatUniform.h
Caner Candan 5b3f42d277 + lib utils
2010-08-24 10:26:36 +02:00

35 lines
766 B
C++

// (c) Thales group, 2010
/*
Authors:
Johann Dreo <johann.dreo@thalesgroup.com>
Caner Candan <caner.candan@thalesgroup.com>
*/
#ifndef _doStatUniform_h
#define _doStatUniform_h
#include "doStat.h"
#include "doUniform.h"
template < typename EOT >
class doStatUniform : public doDistribStat< doUniform< EOT > >
{
public:
using doDistribStat< doUniform< EOT > >::value;
doStatUniform( std::string desc = "" )
: doDistribStat< doUniform< EOT > >( desc )
{}
void operator()( const doUniform< EOT >& distrib )
{
value() = "\n# ====== uniform distribution dump =====\n";
std::ostringstream os;
os << distrib.min() << " " << distrib.max() << std::endl;
value() += os.str();
}
};
#endif // !_doStatUniform_h