1#ifndef __JTOOLS__JQUANTILE__ 
    2#define __JTOOLS__JQUANTILE__ 
   45    public JMath<JQuantile>
 
   70    template<
class JElement_t, 
class JAllocator_t>
 
   74              const double  w         = 1.0) :
 
 
   93      xmin  = std::numeric_limits<double>::max();
 
   94      xmax  = std::numeric_limits<double>::lowest();
 
   95      wmin  = std::numeric_limits<double>::max();
 
   96      wmax  = std::numeric_limits<double>::lowest();
 
 
  133    void put(
const double x, 
const double w = 1.0)
 
  146        const double new_sigma = 
sigma  +  
w * (x - 
mean) * (x - new_mean);
 
  160        buffer.insert(std::make_pair(x,
w));
 
 
  171    template<
class JElement_t, 
class JAllocator_t>
 
  173             const double w = 1.0)
 
  175      for (
typename array_type<JElement_t, JAllocator_t>::const_iterator i = 
buffer.begin(); i != 
buffer.end(); ++i) {
 
 
  372      THROW(
JNoValue, 
"Option 'quantiles' at JQuantile() incompatible with method getQuantile().");
 
 
  382    std::ostream& 
print(std::ostream& out, 
bool lpr = 
true)
 const 
  389        out << setw(nc) << left  << 
" "             << 
' ' 
  390            << setw(12) << left  << 
"    mean"      << 
' ' 
  391            << setw(12) << left  << 
"    STD"       << 
' ' 
  392            << setw(12) << left  << 
"  deviation"   << endl;
 
  395      out << setw(nc) << left << 
getTitle()          << 
' ' 
 
  430      for (T i = __begin; i != __end; ++i) {
 
 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
 
bool getLongprint(std::ostream &out)
Get long print option.
 
Base class for data structures with artithmetic capabilities.
 
Auxiliary methods to convert data members or return values of member methods of a set of objects to a...
 
Exception for division by zero.
 
Exception for missing value.
 
Auxiliary class for title.
 
const std::string & getTitle() const
Get title.
 
const array_type< JValue_t > & make_array(const JValue_t(&array)[N])
Method to create array of values.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary data structure for return type of make methods.
 
Auxiliary base class for aritmetic operations of derived class types.
 
Auxiliary data structure for floating point format specification.