48 void setValues(
const QList<double> &values );
86 QList<double>
binEdges(
int bins )
const;
94 QList<int>
counts(
int bins )
const;
98 QList<double> mValues;
103 void prepareValues();
Base class for feedback objects to be used for cancellation of something running in a worker thread.
QList< int > counts(int bins) const
Returns the calculated list of the counts for the histogram bins.
int optimalNumberBins() const
Returns the optimal number of bins for the source values, calculated using the Freedman-Diaconis rule...
double optimalBinWidth() const
Calculates the optimal bin width using the Freedman-Diaconis rule.
QList< double > binEdges(int bins) const
Returns a list of edges for the histogram for a specified number of bins.
virtual ~QgsHistogram()=default
void setValues(const QList< double > &values)
Assigns numeric source values for the histogram.
Represents a vector layer which manages a vector based dataset.