9#ifndef IMPSPB_EM2D_RESTRAINT_H
10#define IMPSPB_EM2D_RESTRAINT_H
17#include <IMP/spb/spb_config.h>
36 void read_image(std::string ifile,
Float px_size,
Float res);
37 double get_truncated_normalization(
double mean,
double sigma)
const;
38 double get_normal_pdf(
double mean,
double sigma,
double x)
const;
39 void init_grid(
const Floats& sigma_grid);
40 int get_closest(std::vector<double>
const& vec,
double value)
const;
55 double get_cross_correlation()
const;
58 double get_marginal_element(
double fmod)
const;
61 double get_element(
double fmod,
double sigma)
const;
64 double get_probability()
const override;
IMP images for Electron Microscopy Copyright 2007-2026 IMP Inventors. All rights reserved.
A nullptr-initialized pointer to an IMP Object.
Registration results class Copyright 2007-2022 IMP Inventors. All rights reserved.
A decorator for scale parameters particles.
Class for adding derivatives from restraints to the model.
Class to handle individual particles of a Model object.
Parameters given as options to the get_projections() functions.
virtual double unprotected_evaluate(IMP::DerivativeAccumulator *accum) const override
IMP::ModelObjectsTemp do_get_inputs() const override
EM2DRestraint(Particles ps, Particle *sigma, std::string ifile, Float px_size, Float res)
EM2D cross correlation is used to score models in a Bayesian way.
Apply an NOE distance restraint between two particles.
IMP::Vector< RegistrationResult > RegistrationResults
Vector< Pointer< Particle > > Particles
A list of reference-counted Particle objects.
double Float
Basic floating-point value (could be float, double...).
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
IMP::Vector< Float > Floats
Standard way to pass a bunch of Float values.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Generation of projections from models or density maps Copyright 2007-2026 IMP Inventors....
A lognormal restraint that uses the ISPA model to model NOE-derived distance fit.
A smart pointer to a ref-counted Object that is a class member.