Main Page
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
c
d
e
f
i
l
m
n
p
r
s
t
w
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
include
MathHelpers
linearApproximator.h
Go to the documentation of this file.
1
18
#ifndef LINEARAPPROXIMATOR_H
19
#define LINEARAPPROXIMATOR_H
20
#include <vector>
21
#ifndef Q_MOC_RUN
22
#include <Eigen/Dense>
23
#endif
24
25
struct
ApproximationResult
26
{
27
double
variance
;
28
double
angle
;
29
Eigen::Vector2d
approximatedVector
;
30
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
31
};
32
33
class
LinearApproximator
34
{
35
public
:
36
LinearApproximator
() {}
37
//Calculates the best linear approximation for the given set of points with (0,0) as the startpopint
38
//returns the variance between the points and the approximation
39
//double calculateApproximation(std::vector<Eigen::Vector2d> * functionPoints);
40
41
ApproximationResult
calculateApproximation(Eigen::Vector2d * functionPoints,
int
startIndex,
int
endIndex, Eigen::Vector2d centerOffset);
42
43
};
44
45
46
#endif // LINEARAPPROXIMATOR_H
ApproximationResult::approximatedVector
Eigen::Vector2d approximatedVector
Definition:
linearApproximator.h:29
ApproximationResult::variance
double variance
Definition:
linearApproximator.h:27
ApproximationResult::angle
double angle
Definition:
linearApproximator.h:28
LinearApproximator
Definition:
linearApproximator.h:33
LinearApproximator::LinearApproximator
LinearApproximator()
Definition:
linearApproximator.h:36
ApproximationResult
Definition:
linearApproximator.h:25
asr_mild_calibration_tool
Author(s): Aumann Florian, Heller Florian, Meißner Pascal
autogenerated on Mon Feb 28 2022 21:47:19