Engauge Digitizer
2
Loading...
Searching...
No Matches
Fitting
FittingCurve.h
Go to the documentation of this file.
1
/******************************************************************************************************
2
* (C) 2016 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3
* under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4
* LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5
******************************************************************************************************/
6
7
#ifndef FITTING_CURVE_H
8
#define FITTING_CURVE_H
9
10
#include "
FittingCurveCoefficients.h
"
11
#include <QGraphicsPathItem>
12
13
class
Transformation
;
14
16
class
FittingCurve
:
public
QGraphicsPathItem
17
{
18
public
:
20
FittingCurve
(
const
FittingCurveCoefficients
&fittingCoef,
21
double
xMin,
22
double
xMax,
23
bool
isLogXTheta,
24
bool
isLogYRadius,
25
const
Transformation
&transformation);
26
virtual
~FittingCurve
();
27
28
private
:
29
30
double
yFromCoefficientsAndX (
const
FittingCurveCoefficients
&fittingCoef,
31
double
x)
const
;
32
};
33
34
#endif
// FITTING_CURVE_H
FittingCurveCoefficients.h
FittingCurveCoefficients
QVector< double > FittingCurveCoefficients
Coefficients x0, x1, ... in y = a0 + a1 * x + a2 * x^2 + ...
Definition
FittingCurveCoefficients.h:13
FittingCurve::FittingCurve
FittingCurve(const FittingCurveCoefficients &fittingCoef, double xMin, double xMax, bool isLogXTheta, bool isLogYRadius, const Transformation &transformation)
Single constructor.
Definition
FittingCurve.cpp:15
FittingCurve::~FittingCurve
virtual ~FittingCurve()
Definition
FittingCurve.cpp:67
Transformation
Affine transformation between screen and graph coordinates, based on digitized axis points.
Definition
Transformation.h:32
Generated on
for Engauge Digitizer by
1.14.0