mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Corret the t-value von a C.I. of 95%
It's 1.960, not 2 Suggested-by: Willem Ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
25cfd852b9
commit
625fa139a9
1 changed files with 2 additions and 2 deletions
|
@ -752,10 +752,10 @@ void StatsView::RegressionLine::updatePosition()
|
|||
QPolygonF poly;
|
||||
for (double x = minX; x <= maxX + 1; x += (maxX - minX) / 100)
|
||||
poly << QPointF(xAxis->toScreen(x),
|
||||
yAxis->toScreen(reg.a * x + reg.b + 2.0 * sqrt(reg.res2 / (reg.n - 2) * (1.0 / reg.n + (x - reg.xavg) * (x - reg.xavg) / (reg.n - 1) * (reg.n -2) / reg.sx2))));
|
||||
yAxis->toScreen(reg.a * x + reg.b + 1.960 * sqrt(reg.res2 / (reg.n - 2) * (1.0 / reg.n + (x - reg.xavg) * (x - reg.xavg) / (reg.n - 1) * (reg.n -2) / reg.sx2))));
|
||||
for (double x = maxX; x >= minX - 1; x -= (maxX - minX) / 100)
|
||||
poly << QPointF(xAxis->toScreen(x),
|
||||
yAxis->toScreen(reg.a * x + reg.b - 2.0 * sqrt(reg.res2 / (reg.n - 2) * (1.0 / reg.n + (x - reg.xavg) * (x - reg.xavg) / (reg.n - 1) * (reg.n -2) / reg.sx2))));
|
||||
yAxis->toScreen(reg.a * x + reg.b - 1.960 * sqrt(reg.res2 / (reg.n - 2) * (1.0 / reg.n + (x - reg.xavg) * (x - reg.xavg) / (reg.n - 1) * (reg.n -2) / reg.sx2))));
|
||||
QRectF box(QPoint(xAxis->toScreen(minX), yAxis->toScreen(minY)), QPoint(xAxis->toScreen(maxX), yAxis->toScreen(maxY)));
|
||||
|
||||
item->setPolygon(poly.intersected(box));
|
||||
|
|
Loading…
Add table
Reference in a new issue