8#ifndef UI_GGUIBOXPLOT_H_
9#define UI_GGUIBOXPLOT_H_
25 int parentSlotColumnNo,
26 int x,
int y,
int w,
int h)
override;
32 void setData(
const std::vector<float>& values);
49 static float medianSorted(
const std::vector<float>& sorted,
int l,
int rExclusive);
52 int yToPix(
float y)
const;
54 void drawOutlierMarker(
int x,
int y)
const;
57 std::vector<float> raw;
58 std::vector<float> sorted;
59 std::vector<float> outliers;
61 bool showOutliers =
true;
62 std::string title =
"Box Plot";
65 bool hasStats =
false;
66 float q1 = 0.0f, med = 0.0f, q3 = 0.0f;
68 float whiskLow = 0.0f, whiskHigh = 0.0f;
69 float minY = 0.0f, maxY = 1.0f;
81 int chartX = 0, chartY = 0, chartW = 0, chartH = 0;
Definition gBaseGUIObject.h:18
gBaseApp * root
Definition gBaseGUIObject.h:147
Definition gGUIBoxPlot.h:15
void setTitle(const std::string &t)
void setData(const std::vector< float > &values)
const std::string & getTitle() const
void setMarkerSize(int px)
void set(gBaseApp *root, gBaseGUIObject *topParentGUIObject, gBaseGUIObject *parentGUIObject, int parentSlotLineNo, int parentSlotColumnNo, int x, int y, int w, int h) override
bool getShowOutliers() const
void setShowOutliers(bool show)
Definition gGUIControl.h:29