20 #ifndef LIBMESH_STATISTICS_H 21 #define LIBMESH_STATISTICS_H 24 #include "libmesh/libmesh_common.h" 25 #include "libmesh/id_types.h" 181 virtual void histogram (std::vector<dof_id_type> & bin_members,
182 unsigned int n_bins=10);
192 const std::string & filename,
193 unsigned int n_bins);
198 virtual void histogram (std::vector<dof_id_type> & bin_members,
199 unsigned int n_bins=10)
const;
221 #endif // LIBMESH_STATISTICS_H virtual T maximum() const
virtual Real mean() const
virtual Real l2_norm() const
void normalize()
Divides all entries by the largest entry and stores the result.
The StatisticsVector class is derived from the std::vector<> and therefore has all of its useful feat...
virtual std::vector< dof_id_type > cut_above(Real cut) const
virtual Real stddev() const
StatisticsVector(dof_id_type i=0)
Call the std::vector constructor.
ADRealEigenVector< T, D, asd > sqrt(const ADRealEigenVector< T, D, asd > &)
The libMesh namespace provides an interface to certain functionality in the library.
void plot_histogram(const processor_id_type my_procid, const std::string &filename, unsigned int n_bins)
Generates a Matlab/Octave style file which can be used to make a plot of the histogram having the des...
uint8_t processor_id_type
virtual void histogram(std::vector< dof_id_type > &bin_members, unsigned int n_bins=10)
virtual Real stddev(const Real known_mean) const
virtual ~StatisticsVector()=default
Destructor.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
StatisticsVector(dof_id_type i, T val)
Call the std::vector constructor, fill each entry with val.
virtual std::vector< dof_id_type > cut_below(Real cut) const
virtual T minimum() const
virtual Real variance() const