ccStatisticalTestDlg.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //##########################################################################
  2. //# #
  3. //# CLOUDCOMPARE #
  4. //# #
  5. //# This program is free software; you can redistribute it and/or modify #
  6. //# it under the terms of the GNU General Public License as published by #
  7. //# the Free Software Foundation; version 2 or later of the License. #
  8. //# #
  9. //# This program is distributed in the hope that it will be useful, #
  10. //# but WITHOUT ANY WARRANTY; without even the implied warranty of #
  11. //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
  12. //# GNU General Public License for more details. #
  13. //# #
  14. //# COPYRIGHT: EDF R&D / TELECOM ParisTech (ENST-TSI) #
  15. //# #
  16. //##########################################################################
  17. #ifndef CC_STATISTICAL_TEST_DLG_HEADER
  18. #define CC_STATISTICAL_TEST_DLG_HEADER
  19. #include <QDialog>
  20. namespace Ui {
  21. class StatisticalTestDialog;
  22. }
  23. //! Dialog for the Local Statistical Test tool
  24. class ccStatisticalTestDlg : public QDialog
  25. {
  26. public:
  27. //! Default constructor (for distributions with up to 3 parameters)
  28. ccStatisticalTestDlg( QString param1Label,
  29. QString param2Label,
  30. QString param3Label = QString(),
  31. QString windowTitle = QString(),
  32. QWidget* parent = nullptr);
  33. ~ccStatisticalTestDlg();
  34. //! Returns 1st parameter value
  35. double getParam1() const;
  36. //! Returns 2nd parameter value
  37. double getParam2() const;
  38. //! Returns 3rd parameter value
  39. double getParam3() const;
  40. //! Returns the number of neighbors
  41. int getNeighborsNumber() const;
  42. //! Returns the associated probability
  43. double getProbability() const;
  44. private:
  45. Ui::StatisticalTestDialog* m_ui;
  46. };
  47. #endif //CC_STATISTICAL_TEST_DLG_HEADER