6 from __future__
import print_function
13 (m, c) = IMP.example.create_model_and_particles()
18 m.set_log_level(IMP.WARNING)
22 xyzrs = c.get_particles()
25 s.set_scoring_function(sf)
26 s.set_number_of_attempts(10)
28 s.set_log_level(IMP.TERSE)
29 s.set_number_of_monte_carlo_steps(10)
31 configs = s.create_sample()
32 for i
in range(0, configs.get_number_of_configurations()):
33 configs.load_configuration(i)
45 for i
in range(0, clustering.get_number_of_clusters()):
47 configs.load_configuration(clustering.get_cluster_representative(i))
PartitionalClusteringWithCenter * create_lloyds_kmeans(Embedding *embedding, unsigned int k, unsigned int iterations)
Embed a configuration using the XYZ coordinates of a set of particles.
Lower bound harmonic function (non-zero when feature < mean)
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
Return all close unordered pairs of particles taken from the SingletonContainer.
Code to compute statistical measures.
algebra::Sphere3D get_enclosing_sphere(const XYZs &v)
Get a sphere enclosing the set of XYZRs.
Applies a PairScore to each Pair in a list.