QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
QwtBoxSample类 参考

Sample for box-and-whisker plot (boxplot) visualization 更多...

#include <qwt_samples.h>

类 QwtBoxSample 继承关系图:
QwtStatisticalSample

Public 成员函数

 QwtBoxSample (double position=0.0)
 Default constructor
 
 QwtBoxSample (double position, double whiskerLower, double q1, double median, double q3, double whiskerUpper)
 Full constructor with all statistical values
 
bool isValid () const
 Check if sample has valid ordering
 
QwtInterval boundingInterval () const
 Get bounding interval including whiskers
 
QwtInterval boxInterval () const
 Get box body interval (Q1 to Q3)
 
- Public 成员函数 继承自 QwtStatisticalSample
 QwtStatisticalSample (double position=0.0)
 Default constructor
 

Public 属性

double whiskerLower
 Lower whisker endpoint
 
double q1
 First quartile (25th percentile)
 
double median
 Median (50th percentile) - also stored in inherited 'center' field
 
double q3
 Third quartile (75th percentile)
 
double whiskerUpper
 Upper whisker endpoint
 
int outlierCount
 Number of outliers (stored separately, this is count only)
 
- Public 属性 继承自 QwtStatisticalSample
double position
 Position on the "time" axis (x for vertical, y for horizontal orientation)
 
double lower
 Lower bound of the statistical range
 
double upper
 Upper bound of the statistical range
 
double center
 Central reference value
 

详细描述

Sample for box-and-whisker plot (boxplot) visualization

Contains all statistical values needed to render a boxplot: whisker endpoints, quartiles, median, and outlier count. Actual outlier values are stored separately in QwtBoxOutlierSample.

构造及析构函数说明

◆ QwtBoxSample() [1/2]

QwtBoxSample::QwtBoxSample ( double  position = 0.0)
inline

Default constructor

All values set to 0.0

◆ QwtBoxSample() [2/2]

QwtBoxSample::QwtBoxSample ( double  position,
double  whiskerLower,
double  q1,
double  median,
double  q3,
double  whiskerUpper 
)
inline

Full constructor with all statistical values

参数
positionPosition on the axis
whiskerLowerLower whisker endpoint
q1First quartile (25th percentile)
medianMedian value (50th percentile)
q3Third quartile (75th percentile)
whiskerUpperUpper whisker endpoint

成员函数说明

◆ boundingInterval()

QwtInterval QwtBoxSample::boundingInterval ( ) const
inline

Get bounding interval including whiskers

返回
Interval from whiskerLower to whiskerUpper

◆ boxInterval()

QwtInterval QwtBoxSample::boxInterval ( ) const
inline

Get box body interval (Q1 to Q3)

返回
Interval from q1 to q3

◆ isValid()

bool QwtBoxSample::isValid ( ) const
inline

Check if sample has valid ordering

Returns true if whiskerLower <= q1 <= median <= q3 <= whiskerUpper


该类的文档由以下文件生成: