Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
mathhelper.h
1 #ifndef MATHHELPER_H
2 #define MATHHELPER_H
3 
4 namespace Ilwis {
5 
6 struct Coefficient{
7  Coefficient(double x=0, double y=0) : _x(x), _y(y){}
8  double _x,_y;
9 };
10 
12 {
13 public:
14  MathHelper();
15  static bool findOblique(int iPoints, const std::vector<Coordinate>& independent, const std::vector<Coordinate>& dependent, std::vector<Coefficient>& coef, bool useCols);
16  static bool findPolynom(int iTerms, int iPoints, const std::vector<Coordinate>& independent, const std::vector<Coordinate>& dependent, std::vector<Coefficient>& coef);
17 };
18 }
19 #endif // MATHHELPER_H