Gromacs
2019.3
|
#include <gromacs/analysisdata/modules/histogram.h>
Provides "named parameter" idiom for constructing histograms.
Methods in this class do not throw.
Public Member Functions | |
AnalysisHistogramSettingsInitializer () | |
Creates an empty initializer. More... | |
AnalysisHistogramSettingsInitializer & | start (real min) |
Sets the first bin location. More... | |
AnalysisHistogramSettingsInitializer & | binCount (int binCount) |
Sets the number of bins in the histogram. More... | |
AnalysisHistogramSettingsInitializer & | range (real min, real max) |
Sets the first and last bin locations. More... | |
AnalysisHistogramSettingsInitializer & | binWidth (real binWidth) |
Sets the bin width of the histogram. More... | |
AnalysisHistogramSettingsInitializer & | integerBins (bool enabled=true) |
Indicate that first and last bin locations to specify bin centers. More... | |
AnalysisHistogramSettingsInitializer & | roundRange (bool enabled=true) |
Round first and last bin locations. More... | |
AnalysisHistogramSettingsInitializer & | includeAll (bool enabled=true) |
Sets the histogram to match all values. More... | |
Friends | |
class | AnalysisHistogramSettings |
gmx::AnalysisHistogramSettingsInitializer::AnalysisHistogramSettingsInitializer | ( | ) |
Creates an empty initializer.
Should not be called directly, but histogramFromRange() or histogramFromBins() should be used instead.
|
inline |
Sets the number of bins in the histogram.
If only the first bin location is specified, this value is required (and automatically provided if histogramFromBins() is used). If both the first and last bins are specified, either this value or binWidth() is required.
|
inline |
Sets the bin width of the histogram.
If only the first bin location is specified, this value is required (and automatically provided if histogramFromBins() is used). If both the first and last bins are specified, either this value or binCount() is required. If a bin width is provided with both first and last bin locations, and the given bin width does not divide the range exactly, the last bin location is adjusted to match.
|
inline |
Sets the histogram to match all values.
If set, the histogram behaves as if the bins at the ends extended to +-infinity.
|
inline |
Indicate that first and last bin locations to specify bin centers.
If set, the first and last bin locations are interpreted as bin centers. If not set (the default), the first and last bin locations are interpreted as the edges of the whole histogram.
Cannot be specified together with roundRange().
|
inline |
Sets the first and last bin locations.
Typically should not be called directly, but through histogramFromRange().
|
inline |
Round first and last bin locations.
If set, the resulting histogram will cover the range specified, but the actual bin locations will be rounded such that the edges fall on multiples of the bin width. Only implemented when both first and last bin location and bin width are defined. Cannot be specified together with integerBins() or with binCount().
|
inline |
Sets the first bin location.
Typically should not be called directly, but through histogramFromBins().