20 #ifndef LIBMESH_STATISTICS_H 21 #define LIBMESH_STATISTICS_H 155 {
return std::sqrt(this->
variance()); }
165 {
return std::sqrt(this->
variance(known_mean)); }
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
uint8_t processor_id_type
A std::vector derived class for implementing simple statistical algorithms.
virtual std::vector< dof_id_type > cut_above(Real cut) const
virtual Real stddev() const
StatisticsVector(dof_id_type i=0)
virtual ~StatisticsVector()
void plot_histogram(const processor_id_type my_procid, const std::string &filename, unsigned int n_bins)
virtual void histogram(std::vector< dof_id_type > &bin_members, unsigned int n_bins=10)
virtual Real stddev(const Real known_mean) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
StatisticsVector(dof_id_type i, T val)
virtual std::vector< dof_id_type > cut_below(Real cut) const
virtual T minimum() const
virtual Real variance() const