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) {}
56 int sig_cuttoff = 3, KernelType kt = GAUSSIAN);
67 virtual void resample();
82 FloatKey mass_key = atom::Mass::get_mass_key());
88 #if !defined(DOXYGEN) && !defined(SWIG)
92 inline const core::XYZRs &get_xyzr_particles()
const {
return xyzr_; }
94 inline const kernel::Particles &get_sampled_particles()
const {
return ps_; }
95 inline FloatKey get_weight_key()
const {
return weight_key_; }
98 float get_minimum_resampled_value();
108 const kernel::Particles &ps);
112 void determine_grid_size(emreal resolution, emreal voxel_size,
116 emreal resolution, emreal voxel_size,
int sig_offset);
119 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.