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
6ab4d654
Commit
6ab4d654
authored
May 05, 2002
by
alge
Browse files
last T/F changes
parent
cea3218e
Changes
1
Hide whitespace changes
Inline
Side-by-side
man/interp.Rd
View file @
6ab4d654
...
...
@@ -151,17 +151,17 @@ points(akima$x,akima$y)
akima.smooth <- interp(akima$x, akima$y, akima$z,
xo=seq(0,25, length=100), yo=seq(0,20, length=100))
image(akima.smooth$x,akima.smooth$y,akima.smooth$z)
contour(akima.smooth$x,akima.smooth$y,akima.smooth$z,add=T)
contour(akima.smooth$x,akima.smooth$y,akima.smooth$z,add=T
RUE
)
points(akima$x,akima$y)
# use triangulation library to
# show underlying triangulation:
if(library(tripack, logical.return=T))
plot(tri.mesh(akima),add=T,lty="dashed")
if(library(tripack, logical.return=T
RUE
))
plot(tri.mesh(akima),add=T
RUE
,lty="dashed")
# use only 15 points (interpolation only within convex hull!)
akima.part <- interp(akima$x[1:15],akima$y[1:15],akima$z[1:15])
image(akima.part$x,akima.part$y,akima.part$z)
contour(akima.part$x,akima.part$y,akima.part$z,add=T)
contour(akima.part$x,akima.part$y,akima.part$z,add=T
RUE
)
points(akima$x[1:15],akima$y[1:15])
# spline interpolation, use 5 points to calculate derivatives
...
...
@@ -169,7 +169,7 @@ points(akima$x[1:15],akima$y[1:15])
akima.spl <- interp.old(akima$x, akima$y, akima$z,
xo=seq(0,25, length=100), yo=seq(0,20, length=100),ncp=5)
image(akima.spl$x,akima.spl$y,akima.spl$z)
contour(akima.spl$x,akima.spl$y,akima.spl$z,add=T)
contour(akima.spl$x,akima.spl$y,akima.spl$z,add=T
RUE
)
points(akima$x,akima$y)
# example with duplicate points
...
...
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