COPASI API  4.16.103
Public Member Functions | Private Member Functions | List of all members
CQFittingResultTab1 Class Reference

#include <CQFittingResultTab1.h>

Inheritance diagram for CQFittingResultTab1:
Inheritance graph
[legend]
Collaboration diagram for CQFittingResultTab1:
Collaboration graph
[legend]

Public Member Functions

 CQFittingResultTab1 (QWidget *parent=0, const char *name=0, Qt::WindowFlags fl=0)
 
void load (const CFitProblem *pProblem)
 
 ~CQFittingResultTab1 ()
 

Private Member Functions

void init ()
 

Detailed Description

Definition at line 23 of file CQFittingResultTab1.h.

Constructor & Destructor Documentation

CQFittingResultTab1::CQFittingResultTab1 ( QWidget *  parent = 0,
const char *  name = 0,
Qt::WindowFlags  fl = 0 
)

Definition at line 29 of file CQFittingResultTab1.cpp.

References init().

30  : QWidget(parent, fl)
31 {
32  setObjectName(QString::fromUtf8(name));
33  setupUi(this);
34 
35  init();
36 }
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
CQFittingResultTab1::~CQFittingResultTab1 ( )

Definition at line 41 of file CQFittingResultTab1.cpp.

42 {
43  // no need to delete child widgets, Qt does it all for us
44 }

Member Function Documentation

void CQFittingResultTab1::init ( )
private

Definition at line 85 of file CQFittingResultTab1.cpp.

Referenced by CQFittingResultTab1().

86 {}
void CQFittingResultTab1::load ( const CFitProblem pProblem)

Definition at line 46 of file CQFittingResultTab1.cpp.

References C_FLOAT64, C_INT32, CFitProblem::getCrossValidationRMS(), CFitProblem::getCrossValidationSD(), CFitProblem::getCrossValidationSet(), CFitProblem::getCrossValidationSolutionValue(), COptProblem::getExecutionTime(), CExperimentSet::getExperimentCount(), COptProblem::getFunctionEvaluations(), CFitProblem::getRMS(), COptProblem::getSolutionValue(), and CFitProblem::getStdDeviation().

47 {
48  mpEditObjectiveValue->setText(QString::number(pProblem->getSolutionValue()));
49  mpEditRMS->setText(QString::number(pProblem->getRMS()));
50  mpEditStdDeviation->setText(QString::number(pProblem->getStdDeviation()));
51 
52  bool Enable = (pProblem->getCrossValidationSet().getExperimentCount() > 0);
53 
54  mpLblCVObjectiveValue->setEnabled(Enable);
55  mpEditCVObjectiveValue->setEnabled(Enable);
56  mpLblCVRMS->setEnabled(Enable);
57  mpEditCVRMS->setEnabled(Enable);
58  mpLblCVStdDeviation->setEnabled(Enable);
59  mpEditCVStdDeviation->setEnabled(Enable);
60 
61  if (Enable)
62  {
63  mpEditCVObjectiveValue->setText(QString::number(pProblem->getCrossValidationSolutionValue()));
64  mpEditCVRMS->setText(QString::number(pProblem->getCrossValidationRMS()));
65  mpEditCVStdDeviation->setText(QString::number(pProblem->getCrossValidationSD()));
66  }
67  else
68  {
69  mpEditCVObjectiveValue->setText("");
70  mpEditCVRMS->setText("");
71  mpEditCVStdDeviation->setText("");
72  }
73 
74  const unsigned C_INT32 & FunctionEvaluations = pProblem->getFunctionEvaluations();
75 
76  mpEditEvaluations->setText(QString::number(FunctionEvaluations));
77 
78  const C_FLOAT64 & ExecutionTime = pProblem->getExecutionTime();
79 
80  mpEditCPUTime->setText(QString::number(ExecutionTime));
81 
82  mpEditSpeed->setText(QString::number(FunctionEvaluations / ExecutionTime));
83 }
const C_FLOAT64 & getCrossValidationSolutionValue() const
#define C_INT32
Definition: copasi.h:90
const C_FLOAT64 & getCrossValidationRMS() const
const C_FLOAT64 & getSolutionValue() const
const C_FLOAT64 & getExecutionTime() const
const CCrossValidationSet & getCrossValidationSet() const
const C_FLOAT64 & getStdDeviation() const
#define C_FLOAT64
Definition: copasi.h:92
const C_FLOAT64 & getCrossValidationSD() const
const unsigned C_INT32 & getFunctionEvaluations() const
const C_FLOAT64 & getRMS() const
size_t getExperimentCount() const

The documentation for this class was generated from the following files: