COPASI API  4.16.103
Functions
CFitItem.cpp File Reference
#include <limits>
#include <cmath>
#include "copasi.h"
#include "CFitItem.h"
#include "report/CKeyFactory.h"
#include "utilities/CCopasiParameterGroup.h"
#include "CopasiDataModel/CCopasiDataModel.h"
#include "copasi/report/CCopasiRootContainer.h"
Include dependency graph for CFitItem.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CFitItem &o)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CFitItem o 
)

Output stream operator

Parameters
ostream& os
constCFitItem & A
Returns
ostream & os

Definition at line 136 of file CFitItem.cpp.

References CFitItem::getCrossValidation(), CFitItem::getExperiment(), CFitItem::mpGrpAffectedCrossValidations, CFitItem::mpGrpAffectedExperiments, and CCopasiParameterGroup::size().

137 {
138  os << * static_cast<const COptItem *>(&o) << std::endl;
139 
140  size_t i, imax = o.mpGrpAffectedExperiments->size();
141 
142  os << " Affected Experiments:" << std::endl << " ";
143 
144  if (imax == 0) os << "all";
145 
146  for (i = 0; i < imax; i++)
147  {
148  if (i) os << ", ";
149 
150  os << o.getExperiment(i);
151  }
152 
154 
155  os << " Affected Validation Experiments:" << std::endl << " ";
156 
157  if (imax == 0) os << "all";
158 
159  for (i = 0; i < imax; i++)
160  {
161  if (i) os << ", ";
162 
163  os << o.getCrossValidation(i);
164  }
165 
166  return os;
167 }
const std::string & getExperiment(const size_t &index) const
Definition: CFitItem.cpp:194
CCopasiParameterGroup * mpGrpAffectedCrossValidations
Definition: CFitItem.h:230
CCopasiParameterGroup * mpGrpAffectedExperiments
Definition: CFitItem.h:224
const std::string & getCrossValidation(const size_t &index) const
Definition: CFitItem.cpp:244