| expvg {SpatialVx} | R Documentation |
Exponential Variogram
Description
Compute the exponential variogram.
Usage
expvg(p, vg, ...)
## S3 method for class 'flossdiff.expvg'
predict(object, newdata, ...)
## S3 method for class 'flossdiff.expvg'
print(x, ...)
Arguments
p |
numeric vector of length two. Each component should be positively valued. The first component is the nugget and the second is the range parameter. |
vg |
A list object with component |
object, x |
A list object returned by |
newdata |
Numeric giving the distances over which to use the fitted exponential variogram model to make predictions. The default is to go from zero to the maximum lag distance for a given data set, which is not the usual convention for the generic |
... |
Not used. |
Details
A very simple function used mainly internally by flossdiff when fitting the exponential variogram to the empirical one, and by the predict, print and summary method functions for lossdiff objects. For those wishing to use a different variogram model than the exponential, use this function and its method functions as a template. Be sure to create predict and print method functions to operate on objects of class “flossdiff.XXX” where “XXX” is the name of the variogram function you write (so, “expvg” in the current example).
Value
Numeric vector of length equal to that of the d component of vg giving the corresponding exponential variogram values with nugget and range defined by p.
Author(s)
Eric Gilleland
References
Cressie, N. A. (2015) Statistics for Spatial Data. Wiley-Interscience; Revised Edition edition (July 27, 2015), ISBN-10: 1119114616, ISBN-13: 978-1119114611, 928 pp.
See Also
Examples
##
## For examples, see lossdiff and flossdiff
##