Learn R Programming

nandb (version 0.2.1)

ExpSmoothPillars: Exponentially smooth pillars of a 3-dimensional array

Description

For a 3-dimensional array mat3d, pillar i,j is defined as mat3d[i, j, ]. ExpSmoothPillars function performs ExpSmooth on each pillar. ExpSmoothRows performs ExpSmooth on each row of a matrix.

Usage

ExpSmoothPillars(mat3d, tau)

ExpSmoothRows(mat, tau, extended = FALSE)

Arguments

mat3d

A 3-dimensional array.

tau

The time scale for the exponential smoothing (see Stroud 1999).

mat

A matrix.

extended

Logical. Has the series (obs) already been extended via via nandb:::MedReflectExtend()? If not, ExpSmooth will do this prior to smoothing as an edge-correction technique. You will probably never set this to TRUE, but BestTau() needs this feature.

Value

For ExpSmoothPillars, a 3-dimensional array where each pillar has been smoothed. For ExpSmoothRows, a matrix where each row has been smoothed.

Examples

Run this code
# NOT RUN {
m3 <- array(1:12, dim = c(2, 2, 3))
ExpSmoothPillars(m3, 7)
# }

Run the code above in your browser using DataLab