2.1.24.5.2.21 ocmath_para_wbl


Description

Estimate parameters in 2-parameter Weibull’s fixed cases. Fixed cases include:

Fixed shape
Fixed both shape and scale.

Syntax

int ocmath_para_wbl( int iSize, const double * pData, double alpha, double * pPara, double * pCI = NULL, double * pHessian = NULL, double * pCorr = NULL, double * pdSE = NULL, const double * pdFixed = NULL, double * pAD = NULL, double * pPval = NULL, int nPercents = 0, const double * pPercents = NULL, double * pPercentiles = NULL, double * pLower = NULL, 
 double * pUpper = NULL, double * pLogLikelihood = NULL)

Parameters

iSize
[input]input data size
pData
[input]input data
alpha
[input]alpha value
pPara
[output]shape, scale parameter
pCI
[output]confidence interval
pHessian
[output]Hessian
pCorr
[output]Correlation
pdSE
[output]sd of parameter estimates
pdFixed
[input]Fixed parameter value or missing value if not fixed
pAD
[output]Anderson-Darling statistic
pPval
[output]P-value
nPercents
[input]number of Percents
pPercents
[input] Percents
pPercentiles
[output] Percentiles
pLower
[output] lower confidence
pUpper
[output] upper confidence
pLogLikelihood
[output] logLike value

Return

return 0 on successful exit; if an error or warning has been detected, then it returns the specific error or warning code.

Examples

Remark

See Also

ocmath_para_wbl3

Header to Include

origin.h

Reference