9 #ifndef IMPEM_SAMPLED_DENSITY_MAP_H
10 #define IMPEM_SAMPLED_DENSITY_MAP_H
12 #include <IMP/em/em_config.h>
26 GAUSSIAN,BINARIZED_SPHERE,SPHERE
44 KernelType kt=GAUSSIAN);
59 int sig_cuttoff=3, KernelType kt=GAUSSIAN);
70 virtual void resample();
83 int x_margin,
int y_margin,
int z_margin,
85 FloatKey mass_key=atom::Mass::get_mass_key());
91 #if !defined(DOXYGEN) && !defined(SWIG)
95 inline const core::XYZRs & get_xyzr_particles()
const {
return xyzr_;}
97 inline const kernel::Particles & get_sampled_particles()
const {
return ps_;}
98 inline FloatKey get_weight_key()
const {
return weight_key_;}
101 float get_minimum_resampled_value();
110 calculate_particles_bounding_box(
const kernel::Particles &ps);
115 void determine_grid_size(emreal resolution, emreal voxel_size,
int sig_cutoff);
118 emreal maxradius, emreal resolution, emreal voxel_size,
121 void set_neighbor_mask(
float radius);
static FloatKey get_mass_key()
A decorator for particles with mass.
Import IMP/kernel/base_types.h in the namespace.
#define IMP_REF_COUNTED_DESTRUCTOR(Name)
Ref counted objects should have private destructors.
Calculates and stores gaussian kernel parameters.
An approximation of the exponential function.
Class for handling density maps.
Class for handling density maps.
Class for sampling a density map from particles.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
KernelParameters kernel_params_
kernel handling
SampledDensityMap(KernelType kt=GAUSSIAN)
Creates a new density map for sampled map.
Decorator for a sphere-like particle.
Key< 0, true > FloatKey
The type used to identify float attributes in the Particles.