30#include "qwt_global.h"
31#include "qwt_interval.h"
184 return !(*
this == other);
208 double added()
const;
270 return !(*
this == other);
286 for (
int i = 0; i <
set.size(); i++)
310 QwtOHLCSample(
double time = 0.0,
double open = 0.0,
double high = 0.0,
double low = 0.0,
double close = 0.0);
314 bool isValid()
const;
354 : time(t), open(o), high(h), low(l), close(c)
398 minY = qMin(minY,
high);
399 minY = qMin(minY,
low);
400 minY = qMin(minY,
close);
403 maxY = qMax(maxY,
high);
404 maxY = qMax(maxY,
low);
405 maxY = qMax(maxY,
close);
465 : x(posX), y(posY), vx(vectorX), vy(vectorY)
484 : x(pos.x()), y(pos.y()), vx(vectorX), vy(vectorY)
500 return QPointF(
x,
y);
515 return (
vx == 0.0) && (
vy == 0.0);
568 QwtBoxSample(
double position,
double whiskerLower,
double q1,
569 double median,
double q3,
double whiskerUpper);
581 bool isValid()
const;
638 double med,
double q3v,
double wu)
717 bool isEmpty()
const {
return values.isEmpty(); }
720 int count()
const {
return values.size(); }
743 , values(std::move(vals))
Outlier values for a single boxplot position.
Definition qwt_samples.h:680
bool isEmpty() const
Check if no outliers present.
Definition qwt_samples.h:717
double boxPosition
Position of the parent box (matches QwtBoxSample.position)
Definition qwt_samples.h:723
QVector< double > values
All outlier values for this box.
Definition qwt_samples.h:726
int count() const
Get number of outliers.
Definition qwt_samples.h:720
QwtBoxOutlierSample(double boxPosition=0.0)
Default constructor .
Definition qwt_samples.h:729
Sample for box-and-whisker plot (boxplot) visualization.
Definition qwt_samples.h:534
double q3
Third quartile (75th percentile)
Definition qwt_samples.h:617
double whiskerLower
Lower whisker endpoint.
Definition qwt_samples.h:608
double whiskerUpper
Upper whisker endpoint.
Definition qwt_samples.h:620
int outlierCount
Number of outliers (stored separately, this is count only)
Definition qwt_samples.h:623
QwtBoxSample(double position=0.0)
Default constructor.
Definition qwt_samples.h:626
QwtInterval boundingInterval() const
Get bounding interval including whiskers.
Definition qwt_samples.h:656
bool isValid() const
Check if sample has valid ordering.
Definition qwt_samples.h:650
double q1
First quartile (25th percentile)
Definition qwt_samples.h:611
QwtInterval boxInterval() const
Get box body interval (Q1 to Q3)
Definition qwt_samples.h:661
double median
Median (50th percentile) - also stored in inherited 'center' field.
Definition qwt_samples.h:614
A sample of the types (x1-x2, y) or (x, y1-y2)
Definition qwt_samples.h:97
QwtInterval interval
Interval.
Definition qwt_samples.h:110
bool operator==(const QwtIntervalSample &) const
Equality comparison operator .
Definition qwt_samples.h:169
bool operator!=(const QwtIntervalSample &) const
Inequality comparison operator .
Definition qwt_samples.h:182
QwtIntervalSample()
Default constructor.
Definition qwt_samples.h:123
double value
Value.
Definition qwt_samples.h:107
A class representing an interval.
Definition qwt_interval.h:45
Open-High-Low-Close sample used in financial charts.
Definition qwt_samples.h:308
double high
Highest price.
Definition qwt_samples.h:326
bool isValid() const
Check if a sample is valid.
Definition qwt_samples.h:376
double open
Opening price.
Definition qwt_samples.h:323
double close
Closing price.
Definition qwt_samples.h:332
double time
Time of the sample, usually a number representing a specific interval - like a day.
Definition qwt_samples.h:320
QwtInterval boundingInterval() const
Calculate the bounding interval of the OHLC values.
Definition qwt_samples.h:395
QwtOHLCSample(double time=0.0, double open=0.0, double high=0.0, double low=0.0, double close=0.0)
Constructor with all OHLC values.
Definition qwt_samples.h:353
double low
Lowest price.
Definition qwt_samples.h:329
A sample of the types (x1...xn, y) or (x, y1..yn)
Definition qwt_samples.h:200
double added() const
Return all values of the set added together.
Definition qwt_samples.h:283
double value
value
Definition qwt_samples.h:211
QVector< double > set
Vector of values associated to value.
Definition qwt_samples.h:214
bool operator!=(const QwtSetSample &other) const
Inequality comparison operator .
Definition qwt_samples.h:268
bool operator==(const QwtSetSample &other) const
Equality comparison operator .
Definition qwt_samples.h:255
QwtSetSample()
Default constructor.
Definition qwt_samples.h:227
Base class for statistical samples with position and range.
Definition qwt_samples.h:50
double lower
Lower bound of the statistical range.
Definition qwt_samples.h:68
double position
Position on the "time" axis (x for vertical, y for horizontal orientation)
Definition qwt_samples.h:65
QwtStatisticalSample(double position=0.0)
Default constructor.
Definition qwt_samples.h:77
double upper
Upper bound of the statistical range.
Definition qwt_samples.h:71
double center
Central reference value.
Definition qwt_samples.h:74
Sample used in vector fields.
Definition qwt_samples.h:425
double y
y coordinate of the position
Definition qwt_samples.h:439
QwtVectorFieldSample(double x=0.0, double y=0.0, double vx=0.0, double vy=0.0)
Constructor with position and vector coordinates.
Definition qwt_samples.h:464
QPointF pos() const
Return position as QPointF.
Definition qwt_samples.h:498
bool isNull() const
Check if the vector is null.
Definition qwt_samples.h:513
double vx
x coordinate of the vector
Definition qwt_samples.h:442
double x
x coordinate of the position
Definition qwt_samples.h:436
double vy
y coordinate of the vector
Definition qwt_samples.h:445