Click or drag to resize
Accord.NET (logo)

EmpiricalHazardDistributionSort Method (Double, SurvivalOutcome)

Sorts time-censored events considering their time of occurrence and the type of event. Events are first sorted in decreased order of occurrence, and then with failures coming before censoring.

Namespace:  Accord.Statistics.Distributions.Univariate
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public static int[] Sort(
	ref double[] time,
	ref SurvivalOutcome[] output
)
Request Example View Source

Parameters

time
Type: SystemDouble
The time of occurrence for the event.
output
Type: Accord.Statistics.Distributions.UnivariateSurvivalOutcome
The outcome at the time of event (failure or censored).

Return Value

Type: Int32
The indices of the new sorting.
See Also