예제 #1
0
SumCovarianceFunction::SumCovarianceFunction(CovarianceFunction& cf) : CovarianceFunction("Sum Covariance")
{
	covFunctions.push_back(&cf);
	numberParameters = cf.getNumberParameters();
	setDefaultTransforms();
}
예제 #2
0
void SumCovarianceFunction::addCovarianceFunction(CovarianceFunction& cf)
{
	covFunctions.push_back(&cf);
	numberParameters = numberParameters + cf.getNumberParameters();
	setDefaultTransforms();
}
예제 #3
0
/**
 * 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();
}