Perform elementwise arithmetic on fdata objects.
Supports addition, subtraction, multiplication, division, and exponentiation
between two fdata objects or between an fdata object and a
numeric scalar.
Examples
fd1 <- fdata(matrix(1:20, 4, 5))
fd2 <- fdata(matrix(21:40, 4, 5))
fd1 + fd2
#> Functional data object
#> Type: 1D (curve)
#> Number of observations: 4
#> Number of points: 5
#> Range: 1 - 5
fd1 * 2
#> Functional data object
#> Type: 1D (curve)
#> Number of observations: 4
#> Number of points: 5
#> Range: 1 - 5
3 - fd1
#> Functional data object
#> Type: 1D (curve)
#> Number of observations: 4
#> Number of points: 5
#> Range: 1 - 5