Nothing
#'
#' hotrod.R
#'
#' Heat kernel for a one-dimensional rod
#'
#' Copyright (c) Greg McSwiggan and Adrian Baddeley 2017-2020
#'
#' $Revision: 1.6 $ $Date: 2022/05/22 00:01:01 $
hotrod <- function(len, xsource, xquery, sigma,
ends=c("insulated", "absorbing"),
nmax=20) {
ends <- match.arg(ends)
len <- as.numeric(len)
xsource <- as.numeric(xsource)
xquery <- as.numeric(xquery)
sigma <- as.numeric(sigma)
nmax <- as.integer(nmax)
df <- data.frame(len=len, xsource=xsource, xquery=xquery,
sigma=sigma, nmax=nmax)
n <- nrow(df)
switch(ends,
insulated = {
z <- with(df,
.C(SG_hotrodInsul,
n = as.integer(n),
a = as.double(len),
x = as.double(xsource),
y = as.double(xquery),
s = as.double(sigma),
m = as.integer(nmax),
z = as.double(numeric(n)),
PACKAGE="spatstat.geom")$z)
},
absorbing = {
z <- with(df,
.C(SG_hotrodAbsorb,
n = as.integer(n),
a = as.double(len),
x = as.double(xsource),
y = as.double(xquery),
s = as.double(sigma),
m = as.integer(nmax),
z = as.double(numeric(n)),
PACKAGE="spatstat.geom")$z)
})
return(z)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.