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))
单个箱线图位置的异常值
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)
默认构造函数
Definition qwt_samples.h:729
箱线图(boxplot)样本
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)
默认构造函数
Definition qwt_samples.h:626
QwtInterval boundingInterval() const
获取包含须须的边界区间
Definition qwt_samples.h:656
bool isValid() const
检查样本顺序是否有效
Definition qwt_samples.h:650
double q1
First quartile (25th percentile)
Definition qwt_samples.h:611
QwtInterval boxInterval() const
获取箱体区间(Q1 到 Q3)
Definition qwt_samples.h:661
double median
Median (50th percentile) - also stored in inherited 'center' field
Definition qwt_samples.h:614
类型为 (x1-x2, y) 或 (x, y1-y2) 的样本
Definition qwt_samples.h:97
QwtInterval interval
Interval
Definition qwt_samples.h:110
bool operator==(const QwtIntervalSample &) const
相等比较运算符
Definition qwt_samples.h:169
bool operator!=(const QwtIntervalSample &) const
不相等比较运算符
Definition qwt_samples.h:182
QwtIntervalSample()
默认构造函数
Definition qwt_samples.h:123
double value
Value
Definition qwt_samples.h:107
表示区间的类
Definition qwt_interval.h:45
用于金融图表的开盘-最高-最低-收盘样本
Definition qwt_samples.h:308
double high
Highest price
Definition qwt_samples.h:326
bool isValid() const
检查样本是否有效
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
计算 OHLC 值的边界区间
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)
包含所有 OHLC 值的构造函数
Definition qwt_samples.h:353
double low
Lowest price
Definition qwt_samples.h:329
类型为 (x1...xn, y) 或 (x, y1..yn) 的样本
Definition qwt_samples.h:200
double added() const
返回集合中所有值的总和
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
不相等比较运算符
Definition qwt_samples.h:268
bool operator==(const QwtSetSample &other) const
相等比较运算符
Definition qwt_samples.h:255
QwtSetSample()
默认构造函数
Definition qwt_samples.h:227
统计样本的基类,包含位置和范围
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)
默认构造函数
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
用于向量场的样本
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)
带位置和向量坐标的构造函数
Definition qwt_samples.h:464
QPointF pos() const
返回 QPointF 格式的位置
Definition qwt_samples.h:498
bool isNull() const
检查向量是否为空
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