![]() |
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; typedef AbstractSimpleObservable< T >::time_type time_type; typedef AbstractSimpleObservable< T >::count_type count_type; typedef AbstractSimpleObservable< T >::result_type result_type; 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))); virtual uint32_t version_id() const; virtual Observable * clone() const; virtual void output(std::ostream &) const; virtual ALPS_DUMMY_VOID reset(bool); virtual result_type mean() const; virtual bool has_variance() const; virtual result_type variance() const; virtual result_type error() const; result_type error(unsigned) const; virtual convergence_type converged_errors() const; virtual count_type count() const; virtual bool has_tau() const; virtual time_type tau() const; std::string representation() const; virtual void operator<<(const T &); virtual count_type bin_size() const; void set_bin_size(count_type); virtual count_type bin_number() const; virtual count_type bin_number2() const; virtual count_type max_bin_number() const; void set_bin_number(count_type); virtual const value_type & bin_value(count_type) const; virtual const value_type & bin_value2(count_type) const; const std::vector< value_type > & bins() const; virtual void save(ODump &) const; virtual void load(IDump &); void extract_timeseries(ODump &) const; virtual void save(hdf5::archive &) const; virtual void load(hdf5::archive &); virtual std::string evaluation_method(Target) const; // private member functions virtual Observable * convert_mergeable() const; virtual 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)));
virtual uint32_t version_id() const;return a version ID uniquely identifying the class
virtual Observable * clone() const;
clones the observable
virtual void output(std::ostream &) const;
output the result
virtual ALPS_DUMMY_VOID reset(bool equilibrated);
reset the observable
virtual result_type mean() const;the mean value
virtual bool has_variance() const;is variance available ?
virtual result_type variance() const;the variance
virtual result_type error() const;the error
result_type error(unsigned bin_used) const;
virtual convergence_type converged_errors() const;
virtual count_type count() const;the number of measurements
virtual bool has_tau() const;is autocorrelation information available ?
virtual time_type tau() const;the autocorrelation time, throws an exception if not available
std::string representation() const;
virtual void operator<<(const T & x);add another measurement to the observable
virtual 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
virtual count_type bin_number() const;the number of bins
virtual count_type bin_number2() const;the number of bins with squared values
virtual 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.
virtual const value_type & bin_value(count_type) const;the value of a bin
virtual const value_type & bin_value2(count_type) const;the squared value of a bin
const std::vector< value_type > & bins() const;
virtual void save(ODump & dump) const;
virtual void load(IDump & dump);
void extract_timeseries(ODump & dump) const;
virtual void save(hdf5::archive &) const;
virtual void load(hdf5::archive &);
virtual std::string evaluation_method(Target t) const;
SimpleObservable
private member functionsvirtual Observable * convert_mergeable() const;create a copy of the observable that can be merged
virtual void write_more_xml(oxstream & oxs, slice_index it) const;
Copyright © 1994, 2002-2004, 2012 Matthias Troyer, Synge Todo, Maximilian Poprawe |