9#ifndef IMPALGEBRA_GAUSSIAN3D_H
10#define IMPALGEBRA_GAUSSIAN3D_H
12#include <IMP/algebra/algebra_config.h>
17#include <cereal/access.hpp>
20IMPALGEBRA_BEGIN_NAMESPACE
25class Gaussian3D :
public GeometricPrimitiveD<3> {
29 friend class cereal::access;
31 template<
class Archive>
void serialize(Archive &ar) {
41 : tr_(tr), variances_(variances) {}
44 const Vector3D &get_variances()
const {
return variances_; }
46 return get_reference_frame().get_transformation_to().get_translation();
72 double cell_width,
const BoundingBox3D &bb,
double factor=2.5);
74IMPALGEBRA_END_NAMESPACE
A Gaussian distribution in 3D.
DenseGrid3D< double > get_rasterized_fast(const Gaussian3Ds &gmm, const Floats &weights, double cell_width, const BoundingBox3D &bb, double factor=2.5)
Rasterize the Gaussians to a grid.
Gaussian3D get_gaussian_from_covariance(const Eigen::Matrix3d &covariance, const Vector3D ¢er)
Return a Gaussian centered at the origin from a covariance matrix.
BoundingBoxD< 3 > BoundingBox3D
Typedef for Python.
IMP::Vector< Gaussian3D > Gaussian3Ds
Eigen::Matrix3d get_covariance(const Gaussian3D &g)
DenseGrid3D< double > get_rasterized(const Gaussian3Ds &gmm, const Floats &weights, double cell_width, const BoundingBox3D &bb)
Rasterize the Gaussians to a grid.
IMP::Vector< Float > Floats
Standard way to pass a bunch of Float values.
#define IMP_SHOWABLE_INLINE(Name, how_to_show)
Declare the methods needed by an object that can be printed.
All grids that are in the Python API should be defined here.
#define IMP_VALUES(Name, PluralName)
Define the type for storing sets of values.