26 o.set_scoring_function(sf)
29 for pi0
in lc.get_contents():
30 for pi1
in lc.get_contents():
35 print(
"The maximum distance is " + str(max))
41 for pi0
in lc.get_contents():
42 for pi1
in lc.get_contents():
47 print(
"Afterwards, the maximum distance is " + str(max))
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
Various classes to hold sets of particles.
Upper bound harmonic function (non-zero when feature > mean)
XYZRs create_xyzr_particles(Model *m, unsigned int num, Float radius, Float box_side=10)
Create a set of particles with random coordinates.
Simple conjugate gradients optimizer.
Create a scoring function on a list of restraints.
double get_distance(XYZR a, XYZR b)
Compute the sphere distance between a and b.
Class for storing model, its restraints, constraints, and particles.
Store a list of ParticleIndexes.
Restrain the diameter of a set of points.
A decorator for a particle with x,y,z coordinates.
void set_log_level(LogLevel l)
Set the current global log level.
Basic functionality that is expected to be used by a wide variety of IMP users.