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