14 #ifndef __PERFORMANCETERM_H__
15 #define __PERFORMANCETERM_H__
28 #include "numerical_differentiation.h"
31 #include "mathematical_model.h"
33 #include "neural_network.h"
37 #include "../tinyxml2/tinyxml2.h"
183 std::ostringstream buffer;
185 buffer <<
"OpenNN Exception: PerformanceTerm class.\n"
186 <<
"NeuralNetwork* get_neural_network_pointer(void) const method.\n"
187 <<
"Neural network pointer is NULL.\n";
189 throw std::logic_error(buffer.str());
206 std::ostringstream buffer;
208 buffer <<
"OpenNN Exception: PerformanceTerm class.\n"
209 <<
"MathematicalModel* get_mathematical_model_pointer(void) const method.\n"
210 <<
"MathematicalModel pointer is NULL.\n";
212 throw std::logic_error(buffer.str());
230 std::ostringstream buffer;
232 buffer <<
"OpenNN Exception: PerformanceTerm class.\n"
233 <<
"DataSet* get_data_set_pointer(void) const method.\n"
234 <<
"DataSet pointer is NULL.\n";
236 throw std::logic_error(buffer.str());
253 std::ostringstream buffer;
255 buffer <<
"OpenNN Exception: PerformanceTerm class.\n"
256 <<
"NumericalDifferentiation* get_numerical_differentiation_pointer(void) const method.\n"
257 <<
"Numerical differentiation pointer is NULL.\n";
259 throw std::logic_error(buffer.str());
277 virtual void set(
void);
305 virtual void check(
void)
const;
365 virtual std::string
to_string(
void)
const;
367 virtual tinyxml2::XMLDocument*
to_XML(
void)
const;
368 virtual void from_XML(
const tinyxml2::XMLDocument&);