33 if (nextX !=
m_data[0][index] || ((nextY -
m_data[1][index] >= 0) == (direction > 0))) {
70 if (
m_data[0][index] != x || (index > dot)) {
99 if (
m_data[0][index] != x || (index < dot)) {
112 float min = minValueOfColumn(0);
113 float max = maxValueOfColumn(0);
114 float range = max - min;
115 setXMin(min - k_displayLeftMarginRatio*range);
116 setXMax(max + k_displayRightMarginRatio*range);
126 float Store::maxValueOfColumn(
int i) {
136 float Store::minValueOfColumn(
int i) {
204 if (sd0 == 0.0 || sd1 == 0.0) {
214 if (v0 == 0.0 || v1 == 0.0) {
217 return cov*cov/(v0*v1);
239 float Store::addMargin(
float x,
float range,
bool isMin) {
240 float ratio = isMin ? -k_displayBottomMarginRatio : k_displayTopMarginRatio;
241 return x+ratio*range;
double squaredCorrelationCoefficient()
double columnProductSum()
double standardDeviationOfColumn(int i)
int closestVerticalDot(int direction, float x)
double meanOfColumn(int i)
double sumOfColumn(int i)
void setYAuto(bool yAuto)
double correlationCoefficient()
double varianceOfColumn(int i)
int nextDot(int direction, int dot)
double m_data[2][k_maxNumberOfPairs]
double xValueForYValue(double y)
void setDefault() override
double squaredValueSumOfColumn(int i)
void setXMin(float f) override
void setXMax(float f) override
double yValueForXValue(double x)