Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MODEL::Bin Class Reference

#include <bin.h>

List of all members.

Public Methods

 Bin (number start, number end, counter nobins=16)
 ~Bin ()
void add_value (number added)
vector<counter> get_histo ()
vector<number> get_bins (void)
 NO_COPY (Bin)

Private Attributes

number x0
number x1
number dx
counter N
vector<counter>* histogram


Detailed Description

A class for binning: gathers large amounts of numeric data into bins, for histogramming purposes.

Definition at line 45 of file bin.h.


Constructor & Destructor Documentation

Bin ( number start,
number end,
counter nobins = 16 )
 

Create a binning

Parameters:
nobins   the number of bins

Definition at line 22 of file bin.cpp.


Member Function Documentation

void add_value ( number added )
 

add a value to the bin.

Definition at line 36 of file bin.cpp.

vector< number > get_bins ( void )
 

returns an array of bin starts

Definition at line 62 of file bin.cpp.

vector< counter > get_histo ( void )
 

returns an array of numbers representing the histogram

Definition at line 56 of file bin.cpp.


The documentation for this class was generated from the following files:
To get the sources or tarballs, please go to SourceForge or you can use the CVS repository.

More Info? Michael Peeters. Also, check our research website: www.alna.vub.ac.be

Last update: June 2002.


Looking for Open Source? Check out SourceForge Logo !