SumCovarianceFunction::SumCovarianceFunction(CovarianceFunction& cf) : CovarianceFunction("Sum Covariance") { covFunctions.push_back(&cf); numberParameters = cf.getNumberParameters(); setDefaultTransforms(); }
void SumCovarianceFunction::addCovarianceFunction(CovarianceFunction& cf) { covFunctions.push_back(&cf); numberParameters = numberParameters + cf.getNumberParameters(); setDefaultTransforms(); }
/** * Add a covariance function to the sum * * @param cf a covariance function object */ void SumCF::add(CovarianceFunction& cf) { covFunctions.push_back(&cf); numberParameters += cf.getNumberParameters(); }