10#ifndef COLVARBIAS_HISTOGRAM_H
11#define COLVARBIAS_HISTOGRAM_H
18#include "colvarbias.h"
19#include "colvargrid.h"
28 virtual int init(std::string
const &conf);
42 std::string out_name, out_name_dx;
Class for accumulating a scalar function on a grid.
Definition: colvargrid.h:1242
Histogram "bias" (does as the name says)
Definition: colvarbias_histogram.h:22
size_t colvar_array_size
If one or more of the variables are colvarvalue::type_vector, treat them as arrays of this length.
Definition: colvarbias_histogram.h:45
virtual int update()
Definition: colvarbias_histogram.cpp:121
virtual std::istream & read_state_data(std::istream &is)
Read all mutable data not already set by set_state_params() from a formatted stream.
Definition: colvarbias_histogram.cpp:198
virtual int init(std::string const &conf)
Parse config string and (re)initialize.
Definition: colvarbias_histogram.cpp:27
virtual int write_output_files()
Write any output files that this bias may have (e.g. PMF files)
Definition: colvarbias_histogram.cpp:165
virtual std::ostream & write_state_data(std::ostream &os)
Write all mutable data not already written by get_state_params() to a formatted stream.
Definition: colvarbias_histogram.cpp:216
std::vector< cvm::real > weights
If colvar_array_size is larger than 1, weigh each one by this number before accumulating the histogra...
Definition: colvarbias_histogram.h:47
colvar_grid_scalar * grid
n-dim histogram
Definition: colvarbias_histogram.h:40
Collective variable bias, base class.
Definition: colvarbias.h:23
Definition: colvars_memstream.h:30