9 #ifndef IMPEM_SAMPLED_DENSITY_MAP_H
10 #define IMPEM_SAMPLED_DENSITY_MAP_H
12 #include <IMP/em/em_config.h>
38 :
DensityMap(
"SampledDensityMap%1%"), kt_(kt) {}
58 int sig_cutoff = 3, KernelType kt = GAUSSIAN);
69 virtual void resample();
81 void project(
const ParticlesTemp &ps,
int x_margin,
int y_margin,
84 FloatKey mass_key = atom::Mass::get_mass_key());
90 #if !defined(DOXYGEN) && !defined(SWIG)
94 inline const core::XYZRs &get_xyzr_particles()
const {
return xyzr_; }
96 inline const Particles &get_sampled_particles()
const {
return ps_; }
97 inline FloatKey get_weight_key()
const {
return weight_key_; }
100 float get_minimum_resampled_value();
103 void update_resolution(
Float res);
113 const Particles &ps);
117 void determine_grid_size(emreal resolution, emreal voxel_size,
121 emreal resolution, emreal voxel_size,
int sig_offset);
124 void set_neighbor_mask(
float radius);
static FloatKey get_mass_key()
A decorator for particles with mass.
Calculates and stores Gaussian kernel parameters.
Calculates and stores Gaussian kernel parameters.
#define IMP_REF_COUNTED_DESTRUCTOR(Name)
Ref counted objects should have private destructors.
An approximation of the exponential function.
Class for handling density maps.
Class for handling density maps.
Class for sampling a density map from particles.
Key< 0, true > FloatKey
The type used to identify float attributes in the Particles.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
KernelParameters kernel_params_
kernel handling
double Float
Basic floating-point value (could be float, double...)
SampledDensityMap(KernelType kt=GAUSSIAN)
Creates a new density map for sampled map.
Decorator for a sphere-like particle.