Description Details Fields Methods Examples
Build piecewise quadratic log-probability density functions
This is an auxiliary Reference Class in this package. Objects of this reference class are created by opt objects, to represent the p.d.f. of transformed, orthogonal parameters. One object is created per p.d.f. parameter. Users of the package needn't interact with these objects directly; instead, they should call opt object methods. PQFA = piecewise quadratic approximation to log-probability density function.
nnumeric No. points of exact p.d.f. evaluations
xnumeric Univariate z-coordinates of the n points
ynumeric Exact p.d.f. evaluations of the n points
beta0numeric Intercepts of PQFA
beta1numeric Slopes of PQFA
beta2numeric Coeffs. of quadratic terms in PQFA
dxnumeric Distances between adjac. z-coordinates
normctnumeric Normalizing constant of PQFA
pcdfnumeric Partial cdf associated with PQFA
fnslist Auxiliary functions (in R or Fortran)
cdf(z)Cumulative distribution function of the transformed z-parameter.
@param z numeric Input (transformed) parameter for the approx. pdf
@result Evaluation(s) of the approximate c.d.f.
iget.coord()Returns transformed z-coordinates
iget.logd()Returns exact p.d.f. evaluations
iget.multiply.constant(k)Multiplies random variable (Z-parameter) by constant
initialize(x = NULL, y = NULL, useFortran = TRUE)Create a new ZQuadratic object.
@param x numeric Vector of n z-coordinates, n odd, x[(n-1)/2 + 1] = 0
@param y numeric Vector of n exact log-pdf evaluations, made at x
@param useFortran Should Fortran fns. be used instead of R fns.?
invcdf(p)Inverse c.d.f. of the input probability.
@param p numeric A probability
@result Evaluation(s) of the approximate inverse c.d.f.
iset.operate(operation, operand, operand.name, operand.side, my.name)Performs arithmetic operation on random variable (Z-parameter)
is.operation.allowed(operation, argclass)Checks if arithmetic operation is allowed
pdf(z, do.log = FALSE)Probability density function of the transformed z-parameter
@param z numeric Input (transformed) parameter for the approx. pdf
@param do.log logical Log-transform the approx. pdf evaluation?
@result Evaluation(s) of the approximate pdf
plot.fit(do.log = TRUE)Plot the piecewise approximation to the p.d.f. @param do.log logical Display log-p.d.f.?
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.