Click or drag to resize
Accord.NET (logo)

UnivariateDiscreteDistributionHazardFunction Method

Gets the hazard function, also known as the failure rate or the conditional failure density function for this distribution evaluated at point x.

Namespace:  Accord.Statistics.Distributions.Univariate
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.5.0
Syntax
public virtual double HazardFunction(
	int x
)
Request Example View Source

Parameters

x
Type: SystemInt32
A single point in the distribution range.

Return Value

Type: Double
The conditional failure density function h(x) evaluated at x in the current distribution.

Implements

IUnivariateDistributionTObservationHazardFunction(TObservation)
Remarks
The hazard function is the ratio of the probability density function f(x) to the survival function, S(x).
See Also