8#ifndef IMPSPB_MONTE_CARLO_WITH_WTE_H
9#define IMPSPB_MONTE_CARLO_WITH_WTE_H
11#include <IMP/spb/spb_config.h>
14#include <boost/scoped_array.hpp>
26 boost::scoped_array<double> bias_;
31 void do_initialize(
double emin,
double emax,
double sigma,
double gamma,
34 void update_bias(
double score);
35 virtual double do_evaluate(
37 double get_spline(
double score)
const;
40 MonteCarloWithWte(Model *m,
double emin,
double emax,
double sigma,
41 double gamma,
double w0);
43 MonteCarloWithWte(Model *m,
double emin,
double emax,
double sigma,
46 double get_bias(
double score)
const;
49 double *get_bias_buffer()
const {
return bias_.get(); }
52 Floats get_bias_asfloats()
const {
53 Floats buffer(bias_.get(), bias_.get() + nbin_);
57 int get_nbin()
const {
return nbin_; }
59 void set_w0(
double w0) { w0_ = w0; }
61 void set_bias(
const Floats &bias) {
64 std::copy(bias.begin(), bias.end(), bias_.get());
Simple Monte Carlo optimizer.
Abstract base class for all restraints.
#define IMP_USAGE_CHECK(expr, message)
A runtime test for incorrect usage of a class or method.
Object used to hold a set of restraints.
virtual void do_step() override
a class that inherits from this should override this method
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
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.
A smart pointer to a ref-counted Object that is a class member.