getbounds: Get bounds for a given box

Description Usage Arguments Value

Description

Computes the lower and upper bounds on every term in the sum of the objective function within a box.

Usage

1
getbounds(lims.sigsqe, lims.sigsqs, lines, status)

Arguments

lims.sigsqe

numeric vector of length 2 of the form c(lower, upper) containing the x-limits of the box.

lims.sigsqs

numeric vector of length 2 of the form c(lower, upper) containing the y-limits of the box.

lines

dataframe containing the constants that define the shape of each term in the sum. Output from findlines.

status

factor of length of lines denoting the location of the box relative to each line.

Value

A matrix with a row corresponding each term in the sum. The first column contains the lower bound of that term within the box and the second column contains the upper bound. Note that the colSums of this matrix yields the c(lower, upper) bounds on the full objective function.


andrewpbray/lmmoptim documentation built on May 10, 2019, 11:10 a.m.