9#ifndef IMPEXAMPLE_COUNTING_H
10#define IMPEXAMPLE_COUNTING_H
12#include <IMP/example/example_config.h>
16IMPEXAMPLE_BEGIN_NAMESPACE
24 const ParticlesTemp &psb,
25 double point_distance) {
27 for (
unsigned int i = 0; i < vsa.size(); ++i) {
30 IMP_NEW(algebra::NearestNeighbor3D, nn, (vsa));
32 for (
unsigned int i = 0; i < psb.size(); ++i) {
34 if (!nn->get_in_ball(v, point_distance).empty()) {
41IMPEXAMPLE_END_NAMESPACE
A decorator for a particle with x,y,z coordinates.
const algebra::Vector3D & get_coordinates() const
Convert it to a vector.
unsigned int get_number_of_incidences(const ParticlesTemp &psa, const ParticlesTemp &psb, double point_distance)
Vector< VectorD< 3 > > Vector3Ds
#define IMP_NEW(Typename, varname, args)
Declare a ref counted pointer to a new object.
Functions to search over vectors.