ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvStatisticalTestDlg.cpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
9 
11  QString p2Label,
12  QString p3Label /*=QString()*/,
13  QString windowTitle /*=QString()*/,
14  QWidget* parent /*=0*/)
15  : QDialog(parent, Qt::Tool), Ui::StatisticalTestDialog() {
16  setupUi(this);
17 
18  param1Label->setText(p1Label);
19  param2Label->setText(p2Label);
20  if (!p3Label.isNull()) {
21  param3Label->setText(p3Label);
22  } else {
23  param3Label->setVisible(false);
24  param3SpinBox->setVisible(false);
25  }
26 
27  neighborsSpinBox->setValue(16);
28 
29  if (!windowTitle.isNull()) setWindowTitle(windowTitle);
30 }
31 
33  return param1SpinBox->value();
34 }
35 
37  return param2SpinBox->value();
38 }
39 
41  return param3SpinBox->value();
42 }
43 
45  return neighborsSpinBox->value();
46 }
47 
48 double ccStatisticalTestDlg::getProba() const { return probaSpinBox->value(); }
int getNeighborsNumber() const
Returns the number of neighbors.
double getParam1() const
Returns 1st parameter value.
double getParam2() const
Returns 2nd parameter value.
double getParam3() const
Returns 3rd parameter value.
ccStatisticalTestDlg(QString param1Label, QString param2Label, QString param3Label=QString(), QString windowTitle=QString(), QWidget *parent=0)
Default constructor (for distributions with up to 3 parameters)
double getProba() const
Returns the associated probability.