|
C_CalculateExtremeStatisticsExcessesOverThreshold |
C_CalculateExtremeStatisticsExcessesOverThreshold calculates the excesses over a specified threshold. Declustering of the time history is also performed.
The function is optional in the sense that an analysis can be performed without calling C_CalculateExtremeStatisticsExcessesOverThreshold. There are two main scenarios where the function is useful:
int C_CalculateExtremeStatisticsExcessesOverThreshold(
TOrcFxAPIHandle ExtremeStatisticsHandle,
const TExtremeStatisticsSpecification *lpSpecification
double *lpExcessses,
int *lpStatus
);
The extreme statistics handle returned by C_OpenExtremeStatistics.
Points to a TExtremeStatisticsSpecification structure specifying the threshold and decluster period.
If C_FitExtremeStatistics has already been called, then lpSpecification can be NULL. In this scenario the function returns the excesses corresponding to the threshold and decluster period that were passed to C_FitExtremeStatistics.
Points to an array of double values. The array is allocated by the caller and must be have length of at least N values, where N is the number of excesses. In order to obtain N call C_CalculateExtremeStatisticsExcessesOverThreshold passing NULL for this parameter.
Points to a variable in which the status result for the function call will be returned.
The number of excesses.
TExtremeStatisticsSpecification, C_OpenExtremeStatistics, C_FitExtremeStatistics.