1 #ifndef __JTOOLS__JQUANTILE__
2 #define __JTOOLS__JQUANTILE__
24 namespace JPP {
using namespace JTOOLS; }
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)
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) {
Q(UTCMax_s-UTCMin_s)-livetime_s
Auxiliary base class for aritmetic operations of derived class types.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
const std::string & getTitle() const
Get title.
Exception for missing value.
Auxiliary class for title.
const array_type< JValue_t > & make_array(const JValue_t(&array)[N])
Method to create array of values.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
bool getLongprint(std::ostream &out)
Get long print option.
Auxiliary methods to convert data members or return values of member methods of a set of objects to a...
Exception for division by zero.
void copy(const Head &from, JHead &to)
Copy header from from to to.
Base class for data structures with artithmetic capabilities.
Auxiliary data structure for floating point format specification.
Auxiliary data structure for return type of make methods.