Package jline.api.infer
Class InferSmpFamily
java.lang.Object
jline.api.infer.InferSmpFamily
The parametric families
InferSmp fits, in one place so that the estimator, the hazard conversions and the
Environment builder read one parameterization. Every family is fitted in UNCONSTRAINED coordinates theta:
- "exp": theta = log(rate), Exp(rate)
- "weibull": theta = [log(shape), log(scale)], Weibull(shape, scale)
- "gamma": theta = [log(shape), log(scale)], Gamma(shape, scale)
- "lognormal": theta = [mu, log(sigma)], Lognormal(mu, sigma)
-
Method Summary
Modifier and TypeMethodDescriptionstatic DistributionThe LINE distribution of the law with hazard h0(t) exp(eta).static double[][]Log density (row 0) and log survival (row 1) at the instants t under the proportional-hazards factor exp(eta) (eta null for the baseline, else one per instant): H(t) = H0(t) exp(eta), log h = log h0 + eta, log f = log h - H.static double[]Natural parameters: rate | shape, scale | mu, sigma.static intNumber of parameters of the family; refuses an unknown name.static double[]Starting point from the event times tev and the total exposure texp.
-
Method Details
-
npar
Number of parameters of the family; refuses an unknown name. -
logfs
Log density (row 0) and log survival (row 1) at the instants t under the proportional-hazards factor exp(eta) (eta null for the baseline, else one per instant): H(t) = H0(t) exp(eta), log h = log h0 + eta, log f = log h - H. The survival of "gamma" and "lognormal" is floored at 1e-300 before the log, so a censored time far in the tail costs a large finite penalty. -
natural
Natural parameters: rate | shape, scale | mu, sigma. -
theta0
Starting point from the event times tev and the total exposure texp. -
dist
The LINE distribution of the law with hazard h0(t) exp(eta). Only "exp" and "weibull" are closed under a proportional-hazards factor; the other two are refused for eta != 0.
-