OtherStructures.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef OTHERSTRUCTURES_H
  2. #define OTHERSTRUCTURES_H
  3. #include <string>
  4. using std::string;
  5. /**
  6. * Polynom of third order
  7. *
  8. */
  9. class ThirdOrderPolynom
  10. {
  11. protected:
  12. double mS;
  13. double mA;
  14. double mB;
  15. double mC;
  16. double mD;
  17. public:
  18. /**
  19. * Constructor that initializes the polynom with base properties
  20. *
  21. * @param s S offset
  22. * @param a A parameter of the polynom
  23. * @param b B parameter of the polynom
  24. * @param c C parameter of the polynom
  25. * @param d D parameter of the polynom
  26. */
  27. ThirdOrderPolynom (double s, double a, double b, double c, double d);
  28. /**
  29. * Setters for base properties
  30. */
  31. void SetS(double s);
  32. void SetA(double a);
  33. void SetB(double b);
  34. void SetC(double c);
  35. void SetD(double d);
  36. /**
  37. * Getters for base properties
  38. */
  39. double GetS();
  40. double GetA();
  41. double GetB();
  42. double GetC();
  43. double GetD();
  44. /**
  45. * Method to check if sample S is inside the record interval
  46. */
  47. bool CheckInterval (double s_check);
  48. /**
  49. * Returns the value at sample S
  50. */
  51. double GetValue(double s_check);
  52. };
  53. //----------------------------------------------------------------------------------
  54. #endif