forked from r-spatial/gstat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextractPar.Rd
42 lines (34 loc) · 1.16 KB
/
extractPar.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
\name{extractPar}
\alias{extractPar}
\alias{extractParNames}
\title{
Extracting parameters and their names from a spatio-temporal variogram model
}
\description{
All spatio-temporal variogram models have a different set of parameters. These functions extract the parameters and their names from the spatio-temporal variogram model. Note, this function is as well used to pass the parameters to the optim function. The arguments lower and upper passed to optim should follow the same structure.
}
\usage{
extractPar(model)
extractParNames(model)
}
\arguments{
\item{model}{a spatio-temporal variogram model from \code{\link{vgmST}}}
}
\value{
A named numeric vector of parameters or a vector of characters holding the parameters' names.
}
\author{
Benedikt Graeler
}
\seealso{
\code{\link{fit.StVariogram}} and \code{\link{vgmST}}
}
\examples{
sumMetricModel <- vgmST("sumMetric",
space=vgm(30, "Sph", 200, 6),
time =vgm(30, "Sph", 15, 7),
joint=vgm(60, "Exp", 84, 22),
stAni=100)
extractPar(sumMetricModel)
extractParNames(sumMetricModel)
}