Exemplo n.º 1
0
void add_NuisanceMover(Particle *p, double dp, core::MonteCarloMovers &mvs) {
  // put particle in a list
  Particles ps;
  ps.push_back(p);
  // put nuisance floatkey in a list
  FloatKeys fks;
  fks.push_back(FloatKey("nuisance"));
  IMP_NEW(core::NormalMover, mv, (ps, fks, dp));
  mvs.push_back(mv);
}
Exemplo n.º 2
0
FloatKey Weight::get_weight_key(int j) {
  static FloatKeys kk;
  if (kk.empty()) {
    for (int i = 0; i < nstates_max; ++i) {
      std::stringstream out;
      out << i;
      kk.push_back(FloatKey("weight" + out.str()));
    }
  }
  return kk[j];
}
Exemplo n.º 3
0
const FloatKeys Voxel::get_keys() {
  static FloatKeys keys = core::XYZ::get_xyz_keys();
  keys.push_back(core::XYZR::get_radius_key());
  keys.push_back(Voxel::get_density_key());
  return keys;
}