30#include "qwtcore_global.h"
31#include "qwt_interval.h"
130 return !(*
this == other);
147 double added()
const;
186 return !(*
this == other);
196 for (
int i = 0; i <
set.size(); i++)
212 QwtOHLCSample(
double time = 0.0,
double open = 0.0,
double high = 0.0,
double low = 0.0,
double close = 0.0);
216 bool isValid()
const;
246 : time(t), open(o), high(h), low(l), close(c)
272 minY = qMin(minY,
high);
273 minY = qMin(minY,
low);
274 minY = qMin(minY,
close);
277 maxY = qMax(maxY,
high);
278 maxY = qMax(maxY,
low);
279 maxY = qMax(maxY,
close);
322 : x(posX), y(posY), vx(vectorX), vy(vectorY)
333 : x(pos.x()), y(pos.y()), vx(vectorX), vy(vectorY)
343 return QPointF(
x,
y);
352 return (
vx == 0.0) && (
vy == 0.0);
380 QwtBoxSample(
double position,
double whiskerLower,
double q1,
double median,
double q3,
double whiskerUpper);
386 bool isValid()
const;
420 :
QwtStatisticalSample(pos), whiskerLower(0.0), q1(0.0), median(0.0), q3(0.0), whiskerUpper(0.0), outlierCount(0)
425 :
QwtStatisticalSample(pos), whiskerLower(wl), q1(q1v), median(med), q3(q3v), whiskerUpper(wu), outlierCount(0)
474 return values.isEmpty();
480 return values.size();
495 : boxPosition(pos), values(vals)
500 : boxPosition(pos), values(std::move(vals))
Outlier values for a single boxplot position
Definition qwt_samples.h:452
bool isEmpty() const
Check if no outliers present
Definition qwt_samples.h:472
double boxPosition
Position of the parent box (matches QwtBoxSample.position)
Definition qwt_samples.h:484
QVector< double > values
All outlier values for this box
Definition qwt_samples.h:487
int count() const
Get number of outliers
Definition qwt_samples.h:478
QwtBoxOutlierSample(double boxPosition=0.0)
Default constructor
Definition qwt_samples.h:490
Sample for box-and-whisker plot (boxplot) visualization
Definition qwt_samples.h:363
double q3
Third quartile (75th percentile)
Definition qwt_samples.h:410
double whiskerLower
Lower whisker endpoint
Definition qwt_samples.h:401
double whiskerUpper
Upper whisker endpoint
Definition qwt_samples.h:413
int outlierCount
Number of outliers (stored separately, this is count only)
Definition qwt_samples.h:416
QwtBoxSample(double position=0.0)
Default constructor
Definition qwt_samples.h:419
QwtInterval boundingInterval() const
Get bounding interval including whiskers
Definition qwt_samples.h:435
bool isValid() const
Check if sample has valid ordering
Definition qwt_samples.h:430
double q1
First quartile (25th percentile)
Definition qwt_samples.h:404
QwtInterval boxInterval() const
Get box body interval (Q1 to Q3)
Definition qwt_samples.h:440
double median
Median (50th percentile) - also stored in inherited 'center' field
Definition qwt_samples.h:407
A sample of the types (x1-x2, y) or (x, y1-y2)
Definition qwt_samples.h:74
QwtInterval interval
Interval
Definition qwt_samples.h:87
bool operator==(const QwtIntervalSample &) const
Equality comparison operator
Definition qwt_samples.h:120
bool operator!=(const QwtIntervalSample &) const
Inequality comparison operator
Definition qwt_samples.h:128
QwtIntervalSample()
Default constructor
Definition qwt_samples.h:94
double value
Value
Definition qwt_samples.h:84
A class representing an interval
Definition qwt_interval.h:39
Open-High-Low-Close sample used in financial charts
Definition qwt_samples.h:210
double high
Highest price
Definition qwt_samples.h:228
bool isValid() const
Check if a sample is valid
Definition qwt_samples.h:258
double open
Opening price
Definition qwt_samples.h:225
double close
Closing price
Definition qwt_samples.h:234
double time
Time of the sample, usually a number representing a specific interval - like a day.
Definition qwt_samples.h:222
QwtInterval boundingInterval() const
Calculate the bounding interval of the OHLC values
Definition qwt_samples.h:269
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:245
double low
Lowest price
Definition qwt_samples.h:231
A sample of the types (x1...xn, y) or (x, y1..yn)
Definition qwt_samples.h:139
double added() const
Return all values of the set added together
Definition qwt_samples.h:193
double value
value
Definition qwt_samples.h:150
QVector< double > set
Vector of values associated to value
Definition qwt_samples.h:153
bool operator!=(const QwtSetSample &other) const
Inequality comparison operator
Definition qwt_samples.h:184
bool operator==(const QwtSetSample &other) const
Equality comparison operator
Definition qwt_samples.h:176
QwtSetSample()
Default constructor
Definition qwt_samples.h:160
Base class for statistical samples with position and range
Definition qwt_samples.h:43
double lower
Lower bound of the statistical range
Definition qwt_samples.h:55
double position
Position on the "time" axis (x for vertical, y for horizontal orientation)
Definition qwt_samples.h:52
QwtStatisticalSample(double position=0.0)
Default constructor
Definition qwt_samples.h:64
double upper
Upper bound of the statistical range
Definition qwt_samples.h:58
double center
Central reference value
Definition qwt_samples.h:61
Sample used in vector fields
Definition qwt_samples.h:291
double y
y coordinate of the position
Definition qwt_samples.h:305
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:321
QPointF pos() const
Return position as QPointF
Definition qwt_samples.h:341
bool isNull() const
Check if the vector is null
Definition qwt_samples.h:350
double vx
x coordinate of the vector
Definition qwt_samples.h:308
double x
x coordinate of the position
Definition qwt_samples.h:302
double vy
y coordinate of the vector
Definition qwt_samples.h:311