#include <colvargrid.h>
Inheritance diagram for colvar_grid_scalar:
Definition at line 1227 of file colvargrid.h.
Copy constructor (needed because of the grad pointer).
Definition at line 80 of file colvargrid.C.
References NULL.
[virtual]
Constructor from specific sizes arrays.
Definition at line 85 of file colvargrid.C.
References NULL.
[inline]
Accumulate the value.
Definition at line 1252 of file colvargrid.h.
References colvar_grid< cvm::real >::address, colvar_grid< cvm::real >::data, colvar_grid< cvm::real >::has_data, and colvar_grid_count::incr_count.
Referenced by colvar_grid_gradient::acc_force_weighted, colvarbias_meta::project_hills, colvarbias_reweightaMD::update, and colvarbias_histogram::update.
\brief Assuming that the map is a normalized probability density, calculates the entropy (uses widths if they are defined).
Definition at line 183 of file colvargrid.C.
References colvar_grid< cvm::real >::data, colvarmodule::logn, colvar_grid< cvm::real >::nt, and colvar_grid< cvm::real >::widths.
Referenced by colvarbias_meta::init_ebmeta_params.
[inline]
\brief Return the gradient of discrete count from finite differences on the *same* grid for dimension n.
Definition at line 1341 of file colvargrid.h.
References n, colvar_grid< cvm::real >::nx, colvar_grid< cvm::real >::periodic, colvar_grid< cvm::real >::value, colvar_grid< cvm::real >::widths, and colvar_grid< cvm::real >::wrap.
Referenced by colvarbias_reweightaMD::write_cumulant_expansion_pmf, and colvarbias_reweightaMD::write_exponential_reweighted_pmf.
\brief Calculates the integral of the map (uses widths if they are defined).
Definition at line 169 of file colvargrid.C.
References colvar_grid< cvm::real >::data, colvar_grid< cvm::real >::nt, and colvar_grid< cvm::real >::widths.
Referenced by colvarbias_meta::init_ebmeta_params.
\brief Return the highest value.
Definition at line 134 of file colvargrid.C.
References colvar_grid< cvm::real >::data, and colvar_grid< cvm::real >::nt.
Referenced by colvarbias_meta::init_ebmeta_params, and colvarbias_meta::write_pmf.
\brief Return the lowest positive value.
Definition at line 153 of file colvargrid.C.
References colvar_grid< cvm::real >::data, and colvar_grid< cvm::real >::nt.
Referenced by colvarbias_meta::init_ebmeta_params.
\brief Return the lowest value.
Definition at line 144 of file colvargrid.C.
References colvar_grid< cvm::real >::data, and colvar_grid< cvm::real >::nt.
Referenced by colvarbias_meta::init_ebmeta_params, and integrate_potential::set_zero_minimum.
Read a grid written by write_multicol(), incrementin if data is true.
Reimplemented from colvar_grid< cvm::real >.
Definition at line 104 of file colvargrid.C.
References colvar_grid::read_multicol.
Read a grid written by write_multicol(), incrementin if data is true.
Reimplemented from colvar_grid< cvm::real >.
Definition at line 99 of file colvargrid.C.
References colvar_grid::read_multicol.
Referenced by colvarbias::init, and colvarbias_meta::init_ebmeta_params.
[inline, virtual]
Enter or add value but also deal with count grid.
Reimplemented from colvar_grid< cvm::real >.
Definition at line 1402 of file colvargrid.h.
References colvar_grid< cvm::real >::address, colvar_grid< cvm::real >::data, colvarmodule::error, colvar_grid< cvm::real >::has_data, colvar_grid_count::new_count, and colvar_grid< size_t >::value.
[inline, virtual]
\brief Return the value of the function at ix divided by its number of samples (if the count grid is defined).
Reimplemented from colvar_grid< cvm::real >.
Definition at line 1384 of file colvargrid.h.
References colvar_grid< cvm::real >::address, colvar_grid< cvm::real >::data, colvarmodule::error, colvarmodule::real, and colvar_grid< size_t >::value.
[inline]
\brief Return the gradient of the scalar field from finite differences Input coordinates are those of gradient grid, shifted wrt scalar grid Should not be called on edges of scalar grid, provided the latter has margins wrt gradient grid.
Definition at line 1290 of file colvargrid.h.
References colvarmodule::error, n, colvar_grid< cvm::real >::nd, colvar_grid< cvm::real >::value, colvar_grid< cvm::real >::widths, and colvar_grid< cvm::real >::wrap.
Referenced by colvarbias_abf::update.
Write grid in a format which is both human-readable and gnuplot-friendly.
Reimplemented from colvar_grid< cvm::real >.
Definition at line 116 of file colvargrid.C.
References colvar_grid::write_multicol.
Write grid in a format which is both human-readable and gnuplot-friendly.
Reimplemented from colvar_grid< cvm::real >.
Definition at line 111 of file colvargrid.C.
References colvar_grid::write_multicol.
Referenced by colvarbias_reweightaMD::write_count, colvarbias_reweightaMD::write_cumulant_expansion_pmf, colvarbias_reweightaMD::write_exponential_reweighted_pmf, colvarbias_histogram::write_output_files, and colvarbias_meta::write_pmf.
Write the grid data without labels, as they are represented in memory.
Reimplemented from colvar_grid< cvm::real >.
Definition at line 127 of file colvargrid.C.
References colvar_grid::write_opendx.
Write the grid data without labels, as they are represented in memory.
Reimplemented from colvar_grid< cvm::real >.
Definition at line 122 of file colvargrid.C.
References colvar_grid::write_opendx.
Referenced by colvarbias_histogram::write_output_files.
\brief Provide the associated sample count by which each binned value should be divided.
Definition at line 1233 of file colvargrid.h.