Click or drag to resize
Accord.NET (logo)

GeneralContinuousDistributionFromDensityFunction Method (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(
	Func<double, double> pdf
)
Request Example View Source

Parameters

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