|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
从原始数据计算箱线图统计量的辅助类 更多...
#include <qwt_box_statistics.h>
Public 类型 | |
| enum | WhiskerMethod { Tukey , Percentile , MinMax , StandardDeviation , StandardError } |
| 须须计算方法 更多... | |
Public 成员函数 | |
| QwtBoxStatisticsCalculator () | |
| Constructor with default Tukey method | |
| void | setWhiskerMethod (WhiskerMethod method) |
| Set whisker calculation method | |
| WhiskerMethod | whiskerMethod () const |
| Get whisker calculation method | |
| void | setWhiskerCoefficient (double coeff) |
| Set whisker coefficient (1.5 for Tukey, percentile for Percentile method) | |
| double | whiskerCoefficient () const |
| Get whisker coefficient | |
静态 Public 成员函数 | |
| static QwtBoxSample | calculate (double position, const QVector< double > &sortedData, WhiskerMethod method=Tukey, double coefficient=1.5) |
| Compute QwtBoxSample from sorted data | |
| static QwtBoxSample | calculateFromRaw (double position, const QVector< double > &rawData, WhiskerMethod method=Tukey, double coefficient=1.5) |
| Compute QwtBoxSample from unsorted data (sorts internally) | |
| static QVector< double > | extractOutliers (const QwtBoxSample &sample, const QVector< double > &sortedData) |
| Extract outliers given box sample and sorted data | |
| static void | calculateFull (double position, const QVector< double > &rawData, QwtBoxSample &sample, QwtBoxOutlierSample &outliers, WhiskerMethod method=Tukey, double coefficient=1.5) |
| Compute full statistics (sample + outliers) in one call | |
从原始数据计算箱线图统计量的辅助类
须须计算方法
| QwtBoxStatisticsCalculator::QwtBoxStatisticsCalculator | ( | ) |
Constructor with default Tukey method
默认使用 Tukey 方法的构造函数
|
static |
Compute QwtBoxSample from sorted data
从已排序数据计算箱线图统计量
|
static |
Compute QwtBoxSample from unsorted data (sorts internally)
从未排序的原始数据计算箱线图统计量
|
static |
Compute full statistics (sample + outliers) in one call
计算完整的箱线图统计量,包括异常值
|
static |
Extract outliers given box sample and sorted data
根据箱线图样本从已排序数据中提取异常值
| void QwtBoxStatisticsCalculator::setWhiskerCoefficient | ( | double | coeff | ) |
Set whisker coefficient (1.5 for Tukey, percentile for Percentile method)
设置须须系数
| void QwtBoxStatisticsCalculator::setWhiskerMethod | ( | WhiskerMethod | method | ) |
Set whisker calculation method
设置须须计算方法
| double QwtBoxStatisticsCalculator::whiskerCoefficient | ( | ) | const |
Get whisker coefficient
获取须须系数
| QwtBoxStatisticsCalculator::WhiskerMethod QwtBoxStatisticsCalculator::whiskerMethod | ( | ) | const |
Get whisker calculation method
获取须须计算方法