namespace alps {enum { version=...};
template <class T=double>
class SimpleObservable
: public AbstractSimpleObservable<T>,
public RecordableObservable<T>
{
public:
typedef T value_type;
typedef ... time_type;
typedef ... count_type;
typedef ... result_type;
typedef BINNING binning_type;
SimpleObservable(const std::string& name="" ,uint32_t s=0);
SimpleObservable(const std::string& name ,const binning_type&);
uint32_t version_id() const;
Observable* clone() const;
void output(std::ostream&) const;
void reset(bool =false);
result_type mean() const;
bool has_variance() const;
result_type variance() const;
result_type error() const;
count_type count() const;
bool has_minmax() const;
value_type min() const;
value_type max() const;
bool has_tau() const;
time_type tau() const;
virtual bool is_thermalized() const;
uint32_t get_thermalization() const;
bool can_set_thermalization() const;
void operator<<(const T& x);
count_type bin_size() const;
void set_bin_size(count_type s);
count_type bin_number() const;
count_type bin_number2() const;
count_type max_bin_number() const;
void set_bin_number(count_type n);
const value_type& bin_value(count_type n) const;
const value_type& bin_value2(count_type n) const;
void save(ODump& dump) const;
void load(IDump& dump);
void compact();
};
}
the binning strategy type.typedef BINNING binning_type;
a compile-time constant, same as version_idenum { version=...};
The constructors take a second argument which is used to initialize the binning startegies. See the documentation for binning strategies for more information.BasicSimpleObservable(const std::string& name ,const binning_type&);
BasicSimpleObservable(const std::string& name ,uint32_t s=0);
copyright (c) 1994-2010 by Matthias Troyer
Distributed under the Boost Software License, Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt)