FunctionalData: 'R6' Class for Functional Data

Description Usage Format Value Fields Methods Examples

Description

R6 Class for Functional Data

Usage

1
2
3
4
5
FunctionalData$new(grid = c(-5, 5), value = dnorm, resolution = 100L)

BayesData$new(grid = c(-5, 5), value = dnorm, resolution = 100L)

SobolevData$new(grid = c(-5, 5), value = dnorm, resolution = 100L)

Format

An R6Class generator object for generating FunctionalData objects.

Value

A FunctionalData object with a set of specific methods for functional data.

Fields

range

Stores the grid range over which the functional datum is defined.

Methods

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.

Examples

 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)

astamm/fuse documentation built on May 3, 2019, 4:04 p.m.