modelOut: Give the output of a model for given X.

Description Usage Arguments Details Value Examples

View source: R/modelOut.R

Description

Give the output of a model for given X.

Usage

1
modelOut(model, X, Phi.return=FALSE, ...)

Arguments

model

structure specifying the model.

X

input location(s) for which output is to be computed.

Phi.return

(logical) return the basis function(s) as well.

...

optional additional arguments.

Details

Y <- modelOut(model, X) gives the output of the model for a given input X. For latent variable models it gives a position in data space given a position in latent space.

Phi, Y <- modelOut(model, X) gives the output of the model for a given input X. For latent variable models it gives a position in data space given a position in latent space.

Value

Y

output location(s) corresponding to given input locations.

Phi

output basis function(s) corresponding to given input

Examples

1
## missing

Example output

Loading required package: Matrix
Loading required package: fields
Loading required package: spam
Loading required package: dotCall64
Loading required package: grid
Spam version 2.1-1 (2017-07-02) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction 
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.

Attaching package: 'spam'

The following objects are masked from 'package:base':

    backsolve, forwardsolve

Loading required package: maps

gptk documentation built on May 30, 2017, 6:41 a.m.

Related to modelOut in gptk...