![]() |
Home | Libraries | License | Support | People | ALPS Web Site |
alps::SimpleObservable
// In header: <alps/alea/simpleobservable.h> template<typename T, typename BINNING> class SimpleObservable : public alps::AbstractSimpleObservable< T >, public alps::RecordableObservable< T > { public: // types typedef AbstractSimpleObservable< T >::value_type value_type; // the data type of the observable typedef AbstractSimpleObservable< T >::time_type time_type; // the data type for autocorrelation times typedef AbstractSimpleObservable< T >::count_type count_type; // the count data type: an integral type typedef AbstractSimpleObservable< T >::result_type result_type; // the data type of averages and errors typedef AbstractSimpleObservable< T >::slice_index slice_index; typedef AbstractSimpleObservable< T >::label_type label_type; typedef change_value_type< T, int >::type convergence_type; typedef BINNING binning_type; // construct/copy/destruct SimpleObservable(const std::string & = std::string(), const label_type & = label_type()); SimpleObservable(const std::string &, const binning_type &, const label_type & = label_type()); SimpleObservable(const std::string &, uint32_t, const label_type & = label_type()); SimpleObservable(const std::string &, uint32_t, uint32_t, const label_type & = label_type()); // public member functions BOOST_STATIC_CONSTANT(int, version = (type_tag< T >::value+(binning_type::magic_id<< 16))); uint32_t version_id() const; Observable * clone() const; void output(std::ostream &) const; ALPS_DUMMY_VOID reset(bool); result_type mean() const; bool has_variance() const; result_type variance() const; result_type error() const; result_type error(unsigned) const; convergence_type converged_errors() const; count_type count() const; bool has_tau() const; time_type tau() const; std::string representation() const; void operator<<(const T &); count_type bin_size() const; void set_bin_size(count_type); count_type bin_number() const; count_type bin_number2() const; count_type max_bin_number() const; void set_bin_number(count_type); const value_type & bin_value(count_type) const; const value_type & bin_value2(count_type) const; const std::vector< value_type > & bins() const; void save(ODump &) const; void load(IDump &); void extract_timeseries(ODump &) const; std::string evaluation_method(Target) const; // private member functions Observable * convert_mergeable() const; void write_more_xml(oxstream &, slice_index) const; };
SimpleObservable
public
construct/copy/destructSimpleObservable(const std::string & name = std::string(), const label_type & l = label_type());the constructor needs a name and optionally specifications for the binning strategy
SimpleObservable(const std::string & name, const binning_type & b, const label_type & l = label_type());
SimpleObservable(const std::string & name, uint32_t s, const label_type & l = label_type());
SimpleObservable(const std::string & name, uint32_t s, uint32_t a, const label_type & l = label_type());
SimpleObservable
public member functionsBOOST_STATIC_CONSTANT(int, version = (type_tag< T >::value+(binning_type::magic_id<< 16)));
uint32_t version_id() const;return a version ID uniquely identifying the class
Observable * clone() const;
clones the observable
void output(std::ostream &) const;
output the result
ALPS_DUMMY_VOID reset(bool equilibrated);
reset the observable
result_type mean() const;the mean value
bool has_variance() const;is variance available ?
result_type variance() const;the variance
result_type error() const;the error
result_type error(unsigned bin_used) const;
convergence_type converged_errors() const;
count_type count() const;the number of measurements
bool has_tau() const;is autocorrelation information available ?
time_type tau() const;the autocorrelation time, throws an exception if not available
std::string representation() const;
void operator<<(const T & x);merge this observable with another or add measurement
count_type bin_size() const;the number of measurements per bin
void set_bin_size(count_type s);resize bins to contain at least the given number of entries
count_type bin_number() const;the number of bins
count_type bin_number2() const;the number of bins with squared values
count_type max_bin_number() const;get the maximum number of bins
void set_bin_number(count_type n);
set the maximum number of bins This will be the maximum number from now on if additional measurements are performed.
const value_type & bin_value(count_type) const;the value of a bin
const value_type & bin_value2(count_type) const;the squared value of a bin
const std::vector< value_type > & bins() const;
void save(ODump & dump) const;
void load(IDump & dump);
void extract_timeseries(ODump & dump) const;
std::string evaluation_method(Target t) const;
SimpleObservable
private member functionsObservable * convert_mergeable() const;create a copy of the observable that can be merged
void write_more_xml(oxstream & oxs, slice_index it) const;
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo |