Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gebhardt, Albrecht
akima
Commits
da4f0388
Commit
da4f0388
authored
Mar 01, 2013
by
agebhard
Browse files
add forgotten files to CVS
parent
e7873ebe
Changes
2
Show whitespace changes
Inline
Side-by-side
data/akima760.rda
0 → 100644
View file @
da4f0388
File added
man/akima760.Rd
0 → 100644
View file @
da4f0388
\name{akima760}
\alias{akima760}
\title{
Sample data from Akima's Bicubic Spline Interpolation code (TOMS 760)
}
\description{
\code{akima760} is a list with vector components \code{x}, \code{y} and a matrix \code{z} which
represents a smooth surface of \code{z} values at the points
of a regular grid spanned by the vectors \code{x} and \code{y}.
}
\references{
Hiroshi Akima, "
",
ACM Transactions on Mathematical Software,
Vol. 22, No. 3, September 1996, pp. 357-361.
}
\examples{
\dontrun{
library(rgl)
data(akima)
# data
rgl.spheres(akima760$x,akima760$z , akima760$y,0.5,color="red")
rgl.bbox()
# bivariate linear interpolation
# interp:
akima.li <- interp(akima$x, akima$y, akima$z,
xo=seq(min(akima$x), max(akima$x), length = 100),
yo=seq(min(akima$y), max(akima$y), length = 100))
# interp surface:
rgl.surface(akima.li$x,akima.li$y,akima.li$z,color="green",alpha=c(0.5))
# interpp:
akima.p <- interpp(akima$x, akima$y, akima$z,
runif(200,min(akima$x),max(akima$x)),
runif(200,min(akima$y),max(akima$y)))
# interpp points:
rgl.points(akima.p$x,akima.p$z , akima.p$y,size=4,color="yellow")
# bivariate spline interpolation
# data
rgl.spheres(akima$x,akima$z , akima$y,0.5,color="red")
rgl.bbox()
# bivariate cubic spline interpolation
# interp:
akima.si <- interp(akima$x, akima$y, akima$z,
xo=seq(min(akima$x), max(akima$x), length = 100),
yo=seq(min(akima$y), max(akima$y), length = 100),
linear = FALSE, extrap = TRUE)
# interp surface:
rgl.surface(akima.si$x,akima.si$y,akima.si$z,color="green",alpha=c(0.5))
# interpp:
akima.sp <- interpp(akima$x, akima$y, akima$z,
runif(200,min(akima$x),max(akima$x)),
runif(200,min(akima$y),max(akima$y)),
linear = FALSE, extrap = TRUE)
# interpp points:
rgl.points(akima.sp$x,akima.sp$z , akima.sp$y,size=4,color="yellow")
}
}
\keyword{datasets}
% Converted by Sd2Rd version 0.2-a3.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment