![]() |
Home | Libraries | License | Support | People | ALPS Web Site |
alps::AbstractSimpleObservable
// In header: <alps/alea/abstractsimpleobservable.h> template<typename T> class AbstractSimpleObservable : public alps::Observable { public: // types typedef T value_type; // the data type of the observable typedef average_type< T >::type result_type; // the data type of averages and errors typedef alps::slice_index< result_type >::type slice_index; typedef uint64_t count_type; // the count data type: an integral type typedef change_value_type< T, double >::type time_type; // the data type for autocorrelation times typedef change_value_type< T, int >::type convergence_type; typedef change_value_type_replace_valarray< value_type, std::string >::type label_type; // construct/copy/destruct AbstractSimpleObservable(const std::string & = "", const label_type & = label_type()); ~AbstractSimpleObservable(); // public member functions count_type count() const; result_type mean() const; result_type variance() const; result_type error() const; convergence_type converged_errors() const; bool has_minmax() const; value_type min BOOST_PREVENT_MACRO_SUBSTITUTION() const; value_type max BOOST_PREVENT_MACRO_SUBSTITUTION() const; bool has_tau() const; time_type tau() const; bool has_variance() const; count_type bin_number() const; count_type max_bin_number() const; count_type bin_size() const; const value_type & bin_value(count_type) const; count_type bin_number2() const; const value_type & bin_value2(count_type) const; template<typename S> SimpleObservableEvaluator< typename element_type< T >::type > slice(S, const std::string & = "") const; template<typename S> SimpleObservableEvaluator< typename element_type< T >::type > operator[](S) const; void extract_timeseries(ODump &) const; void write_xml(oxstream &, const boost::filesystem::path & = boost::filesystem::path()) const; void write_xml_scalar(oxstream &, const boost::filesystem::path &) const; void write_xml_vector(oxstream &, const boost::filesystem::path &) const; std::string evaluation_method(Target) const; operator SimpleObservableEvaluator< value_type >() const; void set_label(const label_type &); const label_type & label() const; void save(ODump &) const; void load(IDump &); void save(hdf5::archive &) const; void load(hdf5::archive &); // private member functions SimpleObservableEvaluator< value_type > make_evaluator() const; void write_more_xml(oxstream &, slice_index = slice_index()) const; };
AbstractSimpleObservable
public member functionscount_type count() const;the number of measurements
result_type mean() const;the mean value
result_type variance() const;the variance
result_type error() const;the error
convergence_type converged_errors() const;
bool has_minmax() const;is information about the minimum and maximum value available?
value_type min BOOST_PREVENT_MACRO_SUBSTITUTION() const;the minimum value
value_type max BOOST_PREVENT_MACRO_SUBSTITUTION() const;the maximum value
bool has_tau() const;is autocorrelation information available ?
time_type tau() const;the autocorrelation time, throws an exception if not available
bool has_variance() const;is variance available ?
count_type bin_number() const;the number of bins
count_type max_bin_number() const;the number of bins
count_type bin_size() const;the number of measurements per bin
const value_type & bin_value(count_type) const;the value of a bin
count_type bin_number2() const;the number of bins with squared values
const value_type & bin_value2(count_type) const;the squared value of a bin
template<typename S> SimpleObservableEvaluator< typename element_type< T >::type > slice(S s, const std::string & newname = "") const;
slice the data type using a single argument. This can easily be extended when needed to more data types.
Parameters: |
|
template<typename S> SimpleObservableEvaluator< typename element_type< T >::type > operator[](S s) const;
void extract_timeseries(ODump & dump) const;
void write_xml(oxstream & oxs, const boost::filesystem::path & fn_hdf5 = boost::filesystem::path()) const;
output the result
void write_xml_scalar(oxstream &, const boost::filesystem::path &) const;
void write_xml_vector(oxstream &, const boost::filesystem::path &) const;
std::string evaluation_method(Target) const;
operator SimpleObservableEvaluator< value_type >() const;
void set_label(const label_type & l);
const label_type & label() const;
void save(ODump & dump) const;
void load(IDump & dump);
void save(hdf5::archive &) const;
void load(hdf5::archive &);
AbstractSimpleObservable
private member functionsSimpleObservableEvaluator< value_type > make_evaluator() const;
void write_more_xml(oxstream &, slice_index = slice_index()) const;
Copyright © 1994, 2002-2004, 2012 Matthias Troyer, Synge Todo, Maximilian Poprawe |