Learn R Programming

fields (version 6.8)

predict.derivative: Predicted derivatives

Description

Calculates the partial derivatives.

Usage

## S3 method for class 'default':
predict.derivative( object, ...)

Arguments

Value

The target returned object is intended to be a matrix of parital derivatives. The columns being the partial derivatives and the rows the locations.

Details

This function is generic with the default to just call predict with derivative=1. There is a special version for Krig objects because a separate function was designed to evaluate derivatives.

See Also

predict, predict.surface.derivative

Examples

Run this code
data(ozone2)
  fit<- Tps( ozone2$lon.lat, ozone2$y[16,]) 
  hold<- predict.derivative(fit)                           
  set.panel(2,1)
  quilt.plot( fit$x, hold[,1])
  quilt.plot( fit$x, hold[,2])
# lazy plots -- better to create a grid of points and evaluate on grid. 
  set.panel()

Run the code above in your browser using DataLab