Click or drag to resize
Accord.NET (logo)

TrapezoidalDistribution Constructor (Double, Double, Double, Double, Double, Double, Double)

Creates a new trapezoidal distribution.

Namespace:  Accord.Statistics.Distributions.Univariate
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public TrapezoidalDistribution(
	[RealAttribute(-1.79769313486232E+308, 1E+300)][DefaultValueAttribute(0)] double a,
	[RealAttribute(-1.79769313486232E+308, 1.79769313486232E+308)][DefaultValueAttribute(1)] double b,
	[RealAttribute(-1.79769313486232E+308, 1.79769313486232E+308)][DefaultValueAttribute(2)] double c,
	[RealAttribute(1E-300, 1.79769313486232E+308)][DefaultValueAttribute(3)] double d,
	[PositiveAttribute(4.94065645841247E-324, 1.79769313486232E+308)][DefaultValueAttribute(2)] double n1,
	[PositiveAttribute(4.94065645841247E-324, 1.79769313486232E+308)][DefaultValueAttribute(2)] double n3,
	[PositiveAttribute(4.94065645841247E-324, 1.79769313486232E+308)][DefaultValueAttribute(1)] double alpha
)
Request Example View Source

Parameters

a
Type: SystemDouble
The minimum value a.
b
Type: SystemDouble
The beginning of the stability region b.
c
Type: SystemDouble
The end of the stability region c.
d
Type: SystemDouble
The maximum value d.
n1
Type: SystemDouble
The growth slope between points a and b. Default is 2.
n3
Type: SystemDouble
The growth slope between points c and d. Default is 2.
alpha
Type: SystemDouble
The boundary ratio α. Default is 1.
See Also