
Last chance! 50% off unlimited learning
Sale ends in
L2 objective function for validation data point
datapointL2(name, time, value, sigma = 1, attr.name = "validation",
condition)
character, the name of the prediction, e.g. a state name.
numeric, the time-point associated to the prediction
character, the name of the parameter which contains the prediction value.
numeric, the uncertainty of the introduced test data point
character. The constraint value is additionally returned in an attributed with this name
character, the condition for which the prediction is made.
List of class objlist
, i.e. objective value, gradient and Hessian as list.
Computes the constraint value
# NOT RUN {
prediction <- list(a = matrix(c(0, 1), nrow = 1, dimnames = list(NULL, c("time", "A"))))
derivs <- matrix(c(0, 1, 0.1), nrow = 1, dimnames = list(NULL, c("time", "A.A", "A.k1")))
attr(prediction$a, "deriv") <- derivs
p0 <- c(A = 1, k1 = 2)
vali <- datapointL2(name = "A", time = 0, value = "newpoint", sigma = 1, condition = "a")
vali(pars = c(p0, newpoint = 1), env = .GlobalEnv)
# }
Run the code above in your browser using DataLab