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 
26 {
27  double variance;
28  double angle;
29  Eigen::Vector2d approximatedVector;
30  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
31 };
32 
34 {
35 public:
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
Eigen::Vector2d approximatedVector


asr_mild_calibration_tool
Author(s): Aumann Florian, Heller Florian, Meißner Pascal
autogenerated on Mon Dec 2 2019 03:11:43