Click or drag to resize
Accord.NET (logo)

EmpiricalHazardDistributionSort Method (Double, SurvivalOutcome, Double)

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
public static int[] Sort(
	ref double[] time,
	ref SurvivalOutcome[] output,
	ref double[] weights
Request Example View Source


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

Return Value

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