|
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
)
Public Shared Function Sort (
ByRef time As Double(),
ByRef output As SurvivalOutcome()
) As Integer()
Request Example
View SourceParameters
- 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:
Int32The indices of the new sorting.
See Also