20 #ifndef SAMPLE_CONCEPT_H_INCLUDED
21 #define SAMPLE_CONCEPT_H_INCLUDED
23 #include <boost/concept_check.hpp>
24 #include <boost/concept_archetype.hpp>
48 template <
class Func,
class Model>
50 boost::UnaryFunction<Func, double, const Model&>
59 template <
class Func,
class Model>
61 boost::BinaryFunction<Func, Mh_proposal_result, const Model&, Model&>
75 typedef typename X::value_type
Type;
82 const Type& c_v = (*c_i)[0];
127 typedef typename X::Model_type
Model;
139 boost::ignore_unused_variable_warning(vr);
167 i->set_temperature(t);
202 template <
class Model>
204 public boost::unary_function_archetype<const Model, double>
210 boost::unary_function_archetype<const Model, double>(c){}
213 template <
class Model>
215 public boost::binary_function_archetype<const Model, Model, Mh_proposal_result>
225 template <
class Model>
227 public boost::binary_function_archetype<const Model, const Step_log<Model>, void>
233 boost::binary_function_archetype<const Model, const
Step_log<Model>, void>(c){}
const Value_type & operator[](unsigned int) const
Definition: sample_concept.h:189
Definition: sample_concept.h:123
size_t dimensionality(const T &v)
Definition: sample_concept.h:89
Definition: sample_concept.h:49
Definition: sample_concept.h:175
X::Update_type Update_type
Definition: sample_concept.h:147
X::Model_type Model
Definition: sample_concept.h:127
BOOST_CONCEPT_USAGE(Updatable)
Definition: sample_concept.h:149
Definition: sample_concept.h:60
Indicates the result of an MH proposal. It is simply a pair of probabilities, forward and backward...
Definition: sample_base.h:334
BOOST_CONCEPT_ASSERT((boost::Assignable< X >))
Definition: sample_concept.h:73
self & operator=(const self &)
Definition: sample_concept.h:181
model_recorder_archetype(boost::detail::dummy_constructor c)
Definition: sample_concept.h:232
Definition: sample_concept.h:203
Value_type & operator[](unsigned int)
Definition: sample_concept.h:195
Definition: sample_base.h:160
base_model_archetype()
Definition: sample_concept.h:180
BOOST_CONCEPT_ASSERT((BaseModel< Model >))
BOOST_CONCEPT_USAGE(ModelRecorder)
Definition: sample_concept.h:134
BOOST_CONCEPT_USAGE(Annealable)
Definition: sample_concept.h:163
BOOST_CONCEPT_ASSERT((BaseModel< Model >))
BOOST_CONCEPT_ASSERT((BaseModel< Model >))
double Value_type
Definition: sample_concept.h:188
Definition: sample_concept.h:144
Definition: sample_concept.h:226
Definition: sample_concept.h:214
X::value_type Type
Definition: sample_concept.h:75
model_evaluator_archetype(boost::detail::dummy_constructor c)
Definition: sample_concept.h:209
X::Value_type Value_type
Definition: sample_concept.h:126
Definition: sample_concept.h:161
get the indices of edges in each direction for i
Definition: APPgetLargeConnectedEdges.m:48
model_proposer_archetype(boost::detail::dummy_constructor c)
Definition: sample_concept.h:220
BOOST_CONCEPT_USAGE(VectorModel)
Definition: sample_concept.h:77
Definition: sample_concept.h:41
Definition: sample_concept.h:185