00001 //#if defined(__GNUC__) && defined(GCC_PCH) 00002 // #include "../aux/aux.hpp" 00003 //#endif 00004 00005 #include "ParameterCollection.hpp" 00006 00007 #include <assert.h> 00008 00009 using namespace indii::ml::ode; 00010 00011 ParameterCollection::ParameterCollection() { 00012 // 00013 } 00014 00015 ParameterCollection::ParameterCollection(const unsigned int N) : N(N), ps(N) { 00016 // 00017 } 00018 00019 ParameterCollection::~ParameterCollection() { 00020 // 00021 } 00022 00023 void ParameterCollection::setParameter(const unsigned int index, 00024 const double value) { 00025 /* pre-condition */ 00026 assert (index < N); 00027 00028 ps[index] = value; 00029 } 00030
1.5.3