7 #ifndef IMPISD_FRET_DATA_H
8 #define IMPISD_FRET_DATA_H
10 #include <IMP/isd/isd_config.h>
15 #include <cereal/access.hpp>
16 #include <cereal/types/vector.hpp>
18 IMPISD_BEGIN_NAMESPACE
28 std::vector<unsigned> nbin_;
33 friend class cereal::access;
35 template<
class Archive>
void serialize(Archive &ar) {
36 ar(cereal::base_class<Object>(
this), d_term_, d_center_, s_grid_, nbin_,
37 dimension_, grid_, norm_);
40 unsigned get_index(
unsigned indices[3])
const;
49 int get_closest(std::vector<double>
const& vec,
double value)
const;
Helper functions to check for NaN or infinity.
Various useful constants.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Storage of a model, its restraints, constraints and particles.
std::pair< double, double > FloatPair
A generic pair of floats.
Various general useful macros for IMP.
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
Common base class for heavy weight IMP objects.
Object(std::string name)
Construct an object with the given name.
double Float
Basic floating-point value (could be float, double...)
Auxiliary class for FRET_R restraint.