PiecewiseDistribution Constructor

Constructs a new PiecewiseDistribution.

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public PiecewiseDistribution(
	double lowerBound,
	double upperBound,
	double[] xValues,
	double[] probabilities
)

Parameters

lowerBound  Double
The x-value where the cumulative probability becomes nonzero.
upperBound  Double
The x-value where the cumulative probability becomes one.
xValues  Double[]
A Double array containing the interior points.
probabilities  Double[]
A Double array containing the probabilities corresponding to the xValues.

Exceptions

ArgumentNullException

xValues is null.

-or-

probabilities is null.

DimensionMismatchException

The length of xValues does not equal the length of probabilities.

See Also