Learn R Programming

funGp (version 0.1.0)

format4pred: Preparation of inputs for predictions based on an fgpm modelCall

Description

This function prepared input data structures according to the active inputs specified by a "'>modelCall" object. This function is intended to easily adapt the data structures to the requirements of a specific model delivered by the model factory function fgpm_factory.

Usage

format4pred(sIn.pr = NULL, fIn.pr = NULL, args)

Arguments

sIn.pr

sIn.pr an optional matrix of scalar input coordinates at which the output values should be predicted. Each column is interpreted as a scalar input variable and each row as a coordinate. Either scalar input coordinates (sIn.pr), functional input coordinates (fIn.pr), or both must be provided. The "'>modelCall" object provided through args will lead the extraction of only the active scalar inputs in the model.

fIn.pr

an optional list of functional input coordinates at which the output values should be predicted. Each element of the list is interpreted as a functional input variable. Every functional input variable should be provided as a matrix with one curve per row. Either scalar input coordinates (sIn.pr), functional input coordinates (fIn.pr), or both must be provided. The "'>modelCall" object provided through args will lead the extraction of only the active functional inputs in the model.

args

an object of class "'>modelCall", which specifies the set of active scalar and functional inputs.

Value

An object of class "list", containing the input data structures with only the active inputs specified by args.

References

Betancourt, J., Bachoc, F., and Klein, T. (2020), R Package Manual: "Gaussian Process Regression for Scalar and Functional Inputs with funGp - The in-depth tour". RISCOPE project. [HAL]

See Also

* predict for predictions based on a funGp model;

* fgpm for creation of a funGp model;

* fgpm_factory for funGp heuristic model selection.