ZipfianDistribution Constructor

Constructs a new Zipfian distribution.

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.3
C#
public ZipfianDistribution(
	double s,
	int n
)

Parameters

s  Double
The shape parameter of the distribution. Must be greater than zero.
n  Int32
The number of elements in the distribution. Must be greater than zero.

Exceptions

ArgumentOutOfRangeExceptionThrown when n is less than 1.

See Also