9 #ifndef IMPSPB_EM2D_RESTRAINT_H
10 #define IMPSPB_EM2D_RESTRAINT_H
17 #include <IMP/spb/spb_config.h>
19 IMPSPB_BEGIN_NAMESPACE
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;
Generation of projections from models or density maps Copyright 2007-2022 IMP Inventors. All rights reserved.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
virtual double unprotected_evaluate(DerivativeAccumulator *da) const
Return the unweighted score for the restraint.
A decorator for scale parameters particles.
Parameters given as options to the get_projections() functions.
IMP images for Electron Microscopy using openCV matrices Copyright 2007-2022 IMP Inventors. All rights reserved.
A smart pointer to a ref-counted Object that is a class member.
A lognormal restraint that uses the ISPA model to model NOE-derived distance fit. ...
A nullptr-initialized pointer to an IMP Object.
double Float
Basic floating-point value (could be float, double...)
Class to handle individual particles of a Model object.
Apply an NOE distance restraint between two particles.
Registration results class Copyright 2007-2022 IMP Inventors. All rights reserved.
virtual ModelObjectsTemp do_get_inputs() const =0
Class for adding derivatives from restraints to the model.