1 #ifndef __JTOOLS__JQUANTILE__
2 #define __JTOOLS__JQUANTILE__
24 namespace JPP {
using namespace JTOOLS; }
66 min = std::numeric_limits<double>::max();
67 max = std::numeric_limits<double>::lowest();
90 public JMath<JQuantile>
113 template<
class iterator_type>
115 iterator_type __begin,
118 const double w = 1.0) :
121 put(__begin, __end,
w);
133 template<
class JElement_t,
class JAllocator_t>
137 const double w = 1.0) :
173 void put(
const double x,
const double w = 1.0)
183 buffer.insert(std::make_pair(x,
w));
195 template<
class iterator_type>
196 void put(iterator_type __begin,
198 const double w = 1.0)
200 for (iterator_type i = __begin; i != __end; ++i) {
212 template<
class JElement_t,
class JAllocator_t>
214 const double w = 1.0)
353 double getQuantile(
const double Q,
const bool reverse =
false)
const
369 THROW(
JNoValue,
"Option 'quantiles' at JQuantile() incompatible with method getQuantile().");
379 std::ostream&
print(std::ostream& out,
bool lpr =
true)
const
386 out << setw(nc) << left <<
" " <<
' '
387 << setw(10) << left <<
" mean" <<
' '
388 << setw(10) << left <<
" STD" <<
' '
389 << setw(10) << left <<
" deviation" << endl;
392 out << setw(nc) << left <<
getTitle() <<
' '
427 for (
T i = __begin; i != __end; ++i) {
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.