|
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
Syntaxpublic static int[] Sort(
ref double[] time,
ref SurvivalOutcome[] output,
ref double[][] inputs
)
Public Shared Function Sort (
ByRef time As Double(),
ByRef output As SurvivalOutcome(),
ByRef inputs As Double()()
) 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). - inputs
- Type: SystemDouble
The input vector associated with the event.
Return Value
Type:
Int32The indices of the new sorting.
See Also