ecolab::HistoGram Struct Reference
Inheritance diagram for ecolab::HistoGram:
Inheritance graph
Collaboration diagram for ecolab::HistoGram:
Collaboration graph

Public Member Functions

void add_data (TCL_args args)
 
void reread ()
 
void clear ()
 
void outputdat (TCL_args args)
 
- Public Member Functions inherited from ecolab::Plot
double labelheight () const
 height (or width) of an axis label in pixels
 
double lh (double width, double height) const
 
cairo_surface_t * cairoSurface () const
 
int width () const
 
int height () const
 
void setMinMax ()
 set min/max to autoscale on contained data
 
string Image () const
 set/get the Tk image that this class writes to.
 
string Image (const string &im, bool transparency=true)
 
string image (TCL_args args)
 
void redraw ()
 redraw the plot
 
virtual void draw (cairo::Surface &)
 draw the plot onto a given surface
 
void draw (cairo_t *, double width, double height) const
 
void clear ()
 clear all datapoints (and redraw)
 
void add (unsigned pen, double x, double y)
 add a datapoint
 
void add (cairo::Surface &, unsigned pen, double x, double y)
 
template<class C >
void add (unsigned pen, const C &x, const C &y)
 add multiple points (C=container - eg vector/array)
 
template<class C >
void add (cairo::Surface &surf, unsigned pen, const C &x1, const C &y1)
 
void add (const array_ns::array< unsigned > &pens, double x, const array_ns::array< double > &y)
 add multiple pens worth of data in one hit
 
void add (cairo::Surface &surf, const array_ns::array< unsigned > &pens, double x1, const array_ns::array< double > &y1)
 
void labelPen (unsigned pen, const string &label)
 
void LabelPen (unsigned pen, const cairo::SurfacePtr &label)
 label a pen with an arbitrary graphic, given by label.
 
void AssignSide (unsigned pen, Side)
 assign a side to display the scale for pen
 
void assignSide (TCL_args args)
 
void clearPenAttributes ()
 remove all pen labels and side associations
 
void plot (TCL_args args)
 TCL interface.
 
void pack (classdesc::pack_t &p) const
 
void unpack (classdesc::pack_t &p)
 
void addPt (unsigned pen, double x, double y)
 
- Public Member Functions inherited from ecolab::HistoStats
array_ns::array< double > histogram ()
 return histogram
 
array_ns::array< double > bins ()
 
double loglikelihood (TCL_args args)
 return log likelihood ratio of two distributions More...
 
- Public Member Functions inherited from ecolab::Stats
void clear ()
 
double av ()
 average
 
double median ()
 
double stddev ()
 standard deviation
 
Statsoperator<<= (float x)
 append an element to the data
 
Statsoperator<<= (const array_ns::array< float > &x)
 append an array of elements to the data
 
Statsoperator<<= (const array_ns::array< double > &x)
 append an array of elements to the data
 
void add_data (TCL_args args)
 TCL access - append an array of data.
 
bool operator< (const Stats &x) const
 
- Public Member Functions inherited from ecolab::array_ns::array< float >
 array (size_t s=0)
 
 array (size_t s, float val)
 
 array (const array &x)
 
 array (const expr &e, typename enable_if< is_expression< expr >, void * >::float dummy=0)
 
void resize (size_t s)
 resize array to s elements
 
void resize (size_t s, const V &val)
 resize array to s elements, and initialise to val
 
void swap (array &x)
 
float & operator[] (size_t i)
 
float operator[] (size_t i) const
 
enable_if< is_expression< I >, RVindex< array, I > >::float operator[] (const I &i) const
 vector indexing
 
enable_if< is_expression< I >, LVindex< array, I > >::float operator[] (const I &i)
 
arrayoperator= (const array &x)
 
enable_if< is_expression< expr >, array &>::float operator= (const expr &x)
 
enable_if< is_scalar< scalar >, array &>::float operator= (scalar x)
 broadcast
 
enable_if< is_expression< expr >, array &>::float operator+= (const expr &x)
 
enable_if< is_scalar< scalar >, array &>::float operator+= (scalar x)
 summing broadcast
 
enable_if< is_expression< expr >, array &>::float operator-= (const expr &x)
 
enable_if< is_scalar< scalar >, array &>::float operator-= (scalar x)
 subtracting broadcast
 
enable_if< is_expression< expr >, array &>::float operator*= (const expr &x)
 
enable_if< is_scalar< scalar >, array &>::float operator*= (scalar x)
 multiplying broadcast
 
enable_if< is_expression< expr >, array &>::float operator/= (const expr &x)
 
enable_if< is_scalar< scalar >, array &>::float operator/= (scalar x)
 dividing broadcast
 
enable_if< is_expression< expr >, array &>::float operator%= (const expr &x)
 
enable_if< is_scalar< scalar >, array &>::float operator%= (scalar x)
 remaindering broadcast
 
enable_if< is_expression< expr >, array &>::float operator&= (const expr &x)
 
enable_if< is_scalar< scalar >, array &>::float operator&= (scalar x)
 bitwise and broadcast
 
enable_if< is_expression< expr >, array &>::float operator|= (const expr &x)
 
enable_if< is_scalar< scalar >, array &>::float operator|= (scalar x)
 bitwise or broadcast
 
enable_if< is_expression< E >, array &>::float operator<<= (const E &x)
 concatenation
 
enable_if< is_scalar< S >, array &>::float operator<<= (S x)
 
size_t size () const
 number of elements
 
float * data ()
 obtain raw pointer to data
 
const float * data () const
 obtain raw pointer to data
 
iterator begin (void)
 
const_iterator begin (void) const
 
iterator end (void)
 
const_iterator end (void) const
 

Additional Inherited Members

- Public Types inherited from ecolab::Plot
enum  Side { left, right }
 
enum  PlotType { line, bar }
 
- Public Types inherited from ecolab::array_ns::array< float >
typedef float value_type
 
typedef float * iterator
 
typedef const float * const_iterator
 
- Public Attributes inherited from ecolab::Plot
int nxTicks
 
int nyTicks
 number of x/y-axis ticks
 
double fontScale
 scale tick labels
 
double offx
 
double offy
 origin of plot within image
 
bool logx
 
bool logy
 logarithmic plots (x/y axes)
 
bool grid
 
bool subgrid
 draw grid options
 
bool leadingMarker
 draw a leading marker on the curve (full draw only)
 
bool autoscale
 autoscale plot to data
 
bool legend
 add a legend to the plot
 
Side legendSide
 legend drawn towards the left or right
 
PlotType plotType
 
string xlabel
 axis labels
 
string ylabel
 
string y1label
 
double minx
 plot bounding box. y1 refers to the right hand scale
 
double maxx
 
double miny
 
double maxy
 
double miny1
 
double maxy1
 
- Public Attributes inherited from ecolab::HistoStats
unsigned nbins
 number of bins
 
bool logbins
 bin logarithmically
 
float logmin
 log of minimum postive data element. Set in reread.
 
- Public Attributes inherited from ecolab::Stats
double sum
 
double sumsq
 $\sum x_i, \sum x_i^2$
 
float max
 
float min
 max and min value
 
- Protected Member Functions inherited from ecolab::array_ns::array< float >
void copy ()
 

The documentation for this struct was generated from the following file: