Piecewise Distribution Constructor
Constructs a new PiecewiseDistribution.
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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
Argument | xValues is null. -or- probabilities is null. |
Dimension | The length of xValues does not equal the length of probabilities. |