FunctionalModel.new: Create a new instance of 'FunctionalModel'

Description Usage Arguments Value

View source: R/FunctionalModel.R

Description

Instantiate the class FunctionalModel. Negative infinite lower limits will be aliased to NA. If all lower limits are NA, the lower limits vector will be set to NULL. Alias all positive infinite upper limits to NA. If all upper limits are NA, the vector of upper limits will be set to NULL.

Usage

1
2
FunctionalModel.new(f, paramCount, gradient = NULL, estimator = NULL,
  paramLower = NULL, paramUpper = NULL, name = function.toString(f))

Arguments

f

the model function, taking as parameters a value x followed by a parameter vector par

paramCount

the number of model parameters

gradient

a function which takes in a value x and par and returns a vector with the gradient for each parameter dimension

estimator

is a function which takes in a vector of x and a vector of y values as well as limits paramLower and paramUpper and returns an estimate of the parameters, or NULL if no estimate can be made better than just standard normal random numbers

paramLower

the lower bounds for the parameters, or NULL if none are required. An element of the vector may be set of NA if no lower limit for that limit is specified (while lower limits are given for other parameter values).

paramUpper

the upper bounds for the parameters, or NULL if none are required. An element of the vector may be set of NA if no lower upper for that limit is specified (while upper limits are given for other parameter values).

name

the name of the model

Value

the new functional functional model


thomasWeise/regressoR.functional.models documentation built on May 17, 2019, 8:45 p.m.