Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Math Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

Histogram

Module:  Essential Math    Group:  Statistics classes


HistogramRWMathVec<int>

Local Index

Members

Synopsis

#include <rw/histo.h>
#include <rw/math/mathvec.h>
RWMathVec<double> v;
unsigned n;
Histogram H(n, v);

Description

The class Histogram constructs and maintains a histogram of input data. The count is stored as a public RWMathVec<int> base class. It can be used anywhere an RWMathVec<int> can be used.

Public Constructors

Histogram();
Histogram(unsigned nbins, const RWMathVec<double>& v);
Histogram(unsigned nbins, double min, double max);
Histogram(const RWMathVec<double>& b);
Histogram(const Histogram& h);

Public Member Functions

void
addCount(double a);
void
addCount(const RWMathVec<double>& v);
RWMathVec<double>
binBoundaries() const;
unsigned
bins() const;
unsigned
larger() const;
Histogram&
resetCounts();
unsigned
smaller() const;
unsigned
totalCount() const;

Public Member Operators

Histogram&  operator=(const Histogram& h) 
ostream&
operator<<(ostream& s, const Histogram& h);


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.