ModelObjectsTemp GaussianProcessInterpolation::get_inputs() const { ModelObjectsTemp ret; ModelObjectsTemp ret1 = mean_function_->get_inputs(); ret.insert(ret.end(), ret1.begin(), ret1.end()); ret.push_back(sigma_); ModelObjectsTemp ret2 = covariance_function_->get_inputs(); ret.insert(ret.end(), ret2.begin(), ret2.end()); return ret; }
ModelObjectsTemp HelixRestraint::do_get_inputs() const { ModelObjectsTemp ps; Model *m = get_model(); for (IMP::Vector<IMP::PointerMember< core::MultipleBinormalRestraint> >::const_iterator td = dihedral_rs_.begin(); td != dihedral_rs_.end(); ++td){ ModelObjectsTemp bps = (*td)->get_inputs(); ps.insert(ps.end(), bps.begin(), bps.end()); } for (ParticleIndexPairs::const_iterator tb = bonds_ON_.begin(); tb != bonds_ON_.end(); ++tb) { ps.push_back(m->get_particle((*tb)[0])); ps.push_back(m->get_particle((*tb)[1])); } return ps; }