syncSize {DSWE}R Documentation

Data synchronization

Description

Data synchronization is meant to make a pair of data to have the same size. It is performed by removing some data points from the larger dataset. This step is important when comparing energy production between two data sets because energy production is time-based.

Usage

syncSize(data, powercol, timecol = 0, xcol, method = "minimum power")

Arguments

data

A list of two data sets to be synchronized.

powercol

A numeric stating the column number of power production.

timecol

A numeric stating the column number of data time stamp. Default value is zero. A value other than zero should be provided when method = 'time'.

xcol

A numeric or vector stating the column number(s) of power curve input covariates/features (to be used for energy decomposition).

method

A string specifying data synchronization method. Default value 'minimum power'; other options include 'time' and 'random'.

Value

a list containing the synchronized datasets.

References

Latiffianti, E, Ding, Y, Sheng, S, Williams, L, Morshedizadeh, M, Rodgers, M (2022). "Analysis of leading edge protection application on wind turbine performance through energy and power decomposition approaches". Wind Energy. 2022; 1-19. doi:10.1002/we.2722.

Examples


data = list(data1[1:200,], data2[1:180, ])
powercol = 7
timecol = 1
xcol = c(2:6)
method = 'random'
sync.dat = syncSize(data, powercol, timecol, xcol, method)

data = list(data1[500:700,], data2[600:750, ])
powercol = 7
timecol = 1
xcol = c(2:6)
method = 'time'
sync.dat = syncSize(data, powercol, timecol, xcol, method)


[Package DSWE version 1.8.2 Index]