Description Usage Format Value Fields Methods Examples
R6
Class for Functional Data
1 2 3 4 5 |
An R6Class
generator object for generating
FunctionalData
objects.
A FunctionalData
object with a set of specific methods
for functional data.
range
Stores the grid range over which the functional datum is defined.
new(grid = c(0, 2 * pi), value =
sin, resolution = 1000L)
This method is used to create object of this
class with serveraddress
as address of the server object is
connecting to.
format(...)
This method changes server that
you are contacting with to serveraddress
.
evaluate(x)
This method creates new session on the server
with optionally given name in sessionname
.
plot()
This method changes currently used session on the
server to the one with id given in sessionid
parameter.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | f <- SobolevData$new(value = dnorm, grid = c(-5, 5))
g <- BayesData$new(value = dnorm, grid = c(-5, 5))
f
g
f$plot()
g$plot()
f$add(f)
g$add(g)
f$add(f)$plot()
f$add()$plot()
f$mul(2)$plot()
g$add(g)$plot()
g$mul(2)$plot()
g$mul(1/2)$plot()
g$div(2)$plot()
f$mul(f)$plot()
g$mul(g)$plot()
f$prod(f$mul(2))
f$dist(f$mul(2))
f$dist(f$mul(2), normalize = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.