double_serie: Double the length of a data series for the FAST algoritm

Description Usage Arguments Details Value Author(s) References Examples

Description

This function is used internally for the FAST-algorithm. It duplicates the length of a data series assuming that the second part is a mirror image of the first part

Usage

1

Arguments

x

x is the data series to make longer

Details

This function reverses the model output series from a number of model runs for the FAST analysis and appends it to the original series. The last element of the existing series is not duplicated during this process.

This is required in order to process the model run results for the FAST analysis with the fft function.

Value

If x=c(1,2,3,4) the returned vector is c(1,2,3,4,3,2,1)

Author(s)

Dominik Reusser

References

cukier 1978

Examples

1
2
x=c(1,2,3,4)
double_serie(x)

Example output

Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

[1] 1 2 3 4 3 2 1

fast documentation built on May 2, 2019, 5:56 a.m.