Click or drag to resize
Accord.NET (logo)

GeneralContinuousDistributionFromDensityFunction Method (DoubleRange, FuncDouble, Double)

Creates a new GeneralContinuousDistribution using only a probability density function definition.

Namespace:  Accord.Statistics.Distributions.Univariate
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public static GeneralContinuousDistribution FromDensityFunction(
	DoubleRange support,
	Func<double, double> pdf
)
Request Example View Source

Parameters

support
Type: AccordDoubleRange
The distribution's support over the real line.
pdf
Type: SystemFuncDouble, Double
A probability density function.

Return Value

Type: GeneralContinuousDistribution
A GeneralContinuousDistribution created from the pdf whose measures and functions are computed using numerical integration and differentiation.
See Also