DiscreteDistribution.GetExpectedHistogram Method

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

GetExpectedHistogram(Index<Interval<Int32>>, Double) Returns a histogram whose bins contain the expected number of samples from the distribution for a given total number of samples.
GetExpectedHistogram(Index<Int32>, Double) Returns a histogram whose bins contain the expected number of samples from the distribution for a given total number of samples.
GetExpectedHistogram(Int32, Int32, Double) Returns a histogram whose bins contain the expected number of samples from the distribution for a given total number of samples.

GetExpectedHistogram(Index<Interval<Int32>>, Double)

Returns a histogram whose bins contain the expected number of samples from the distribution for a given total number of samples.
C#
public Histogram<Interval<int>> GetExpectedHistogram(
	Index<Interval<int>> index,
	double numberOfSamples
)

Parameters

index  Index<Interval<Int32>>
An interval index that specifies the bins in the histogram.
numberOfSamples  Double
The total number of samples.

Return Value

Histogram<Interval<Int32>>
A vector.

Remarks

The total in each bin is the expectation value of the number of samples in the bin when numberOfSamples samples are taken from the distribution.

GetExpectedHistogram(Index<Int32>, Double)

Returns a histogram whose bins contain the expected number of samples from the distribution for a given total number of samples.
C#
public Histogram<int> GetExpectedHistogram(
	Index<int> index,
	double numberOfSamples
)

Parameters

index  Index<Int32>
An interval index that specifies the bins in the histogram.
numberOfSamples  Double
The total number of samples.

Return Value

Histogram<Int32>
A vector.

Remarks

The total in each bin is the expectation value of the number of samples in the bin when numberOfSamples samples are taken from the distribution.

GetExpectedHistogram(Int32, Int32, Double)

Returns a histogram whose bins contain the expected number of samples from the distribution for a given total number of samples.
C#
public Histogram<int> GetExpectedHistogram(
	int lowerBound,
	int upperBound,
	double numberOfSamples
)

Parameters

lowerBound  Int32
The lower bound of the histogram.
upperBound  Int32
The exclusive upper bound of the histogram.
numberOfSamples  Double
The total number of samples.

Return Value

Histogram<Int32>
A vector.

Remarks

This method constructs a histogram with unit bins from lowerBound up to upperBound.

The total in each bin is the expectation value of the number of samples in the bin when numberOfSamples samples are taken from the distribution.

See Also