summaryrefslogtreecommitdiff
path: root/include/surfaceFitModel.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/surfaceFitModel.hpp')
-rw-r--r--include/surfaceFitModel.hpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/surfaceFitModel.hpp b/include/surfaceFitModel.hpp
new file mode 100644
index 0000000..303633f
--- /dev/null
+++ b/include/surfaceFitModel.hpp
@@ -0,0 +1,32 @@
+#pragma once
+#include <cmath>
+#include "eigen3/Eigen/Dense"
+
+
+using namespace Eigen;
+
+#define X_DEGREE 4 // Highest x-degree of current Surface Fit Model
+#define Y_DEGREE 3 // Highest y-degree of current Surface Fit Model
+
+class SurfaceFitModel {
+
+ private:
+ MatrixXd p; // Polynomial values
+
+ public:
+
+ /**
+ * @brief Construct a new Surface Fit Model object
+ *
+ */
+ SurfaceFitModel();
+
+ /**
+ * @brief
+ *
+ * @param x
+ * @param y
+ * @return double
+ */
+ double getFit(double x, double y);
+};