IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Meta.Numerics.Statistics.Histogram Class Reference

A histogram. More...

Public Member Functions

 Histogram (int bins)
 Creates a histogram with the given number of bins. More...
 
 Histogram (IList< double > borders)
 Create a histogram with the given bin borders. More...
 
void Add (double value)
 Adds a new value to the histogram. More...
 
void Add (int k)
 
void Clear ()
 
TestResult ChiSquaredTest (DiscreteDistribution distribution)
 

Properties

HistogramBin this[int k] [get]
 Gets the specified bin. More...
 
int TotalCounts [get]
 Gets the total number of counts in the histogram. More...
 
int OutOfRangeCounts [get]
 Gets the number of counts out of the range of the histogram. More...
 
int Count [get]
 
Interval Range [get]
 The range of values in the histogram. More...
 

Private Member Functions

bool CheckBorders ()
 
int FindIndex (double value)
 

Private Attributes

int extraCounts
 

Detailed Description

A histogram.

Constructor & Destructor Documentation

Meta.Numerics.Statistics.Histogram.Histogram ( int  bins)
inline

Creates a histogram with the given number of bins.

Parameters
binsThe number of bins.
Meta.Numerics.Statistics.Histogram.Histogram ( IList< double >  borders)
inline

Create a histogram with the given bin borders.

Parameters
bordersA list of bin borders.

Member Function Documentation

bool Meta.Numerics.Statistics.Histogram.CheckBorders ( )
inlineprivate
int Meta.Numerics.Statistics.Histogram.FindIndex ( double  value)
inlineprivate
void Meta.Numerics.Statistics.Histogram.Add ( double  value)
inline

Adds a new value to the histogram.

Parameters
valueThe value to add.

Referenced by FutureTest.FutureTest.ChiSquareDistribution(), and Test.DiscreteDistributionTest.DiscreteDistributionRandomValues().

void Meta.Numerics.Statistics.Histogram.Add ( int  k)
inline
void Meta.Numerics.Statistics.Histogram.Clear ( )
inline

Member Data Documentation

int Meta.Numerics.Statistics.Histogram.extraCounts
private

Property Documentation

HistogramBin Meta.Numerics.Statistics.Histogram.this[int k]
get

Gets the specified bin.

Parameters
kThe index of the bin.
Returns
The specified bin.
int Meta.Numerics.Statistics.Histogram.TotalCounts
get

Gets the total number of counts in the histogram.

int Meta.Numerics.Statistics.Histogram.OutOfRangeCounts
get

Gets the number of counts out of the range of the histogram.

int Meta.Numerics.Statistics.Histogram.Count
get
Interval Meta.Numerics.Statistics.Histogram.Range
get

The range of values in the histogram.


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