C# Class Redzen.Numerics.HistogramData

Histogram data. Frequency counts arranged into bins..
Exibir arquivo Open project: colgreen/Redzen

Public Methods

Method Description
GetBucketIndex ( double x ) : int

Gets the index of the bucket that covers the specified x value. Throws an exception if x is outside the range of represented by the distribution buckets.

HistogramData ( double min, double max, double increment, int frequencyArr ) : System

Construct with the provided frequency distribution data.

Method Details

GetBucketIndex() public method

Gets the index of the bucket that covers the specified x value. Throws an exception if x is outside the range of represented by the distribution buckets.
public GetBucketIndex ( double x ) : int
x double
return int

HistogramData() public method

Construct with the provided frequency distribution data.
public HistogramData ( double min, double max, double increment, int frequencyArr ) : System
min double The minimum value in the data series the distribution represents.
max double The maximum value in the data series the distribution represents.
increment double The range of a single category bucket.
frequencyArr int The array of category frequency counts.
return System