imptPower {DSWE} | R Documentation |

## Power imputation

### Description

Good power curve modeling requires valid power values in the region between cut-in and cut-out wind speed. However, when turbine is not operating, the power production will be recorded as zero or negative. This function replaces those values with predicted values obtained from the estimated tempGP power curve model using one input variable - the wind speed.

### Usage

```
imptPower(
data,
powercol,
vcol,
vrange,
rated.power = NULL,
sample = TRUE,
size = 2500
)
```

### Arguments

`data` |
A list of two data sets that require imputation. |

`powercol` |
A numeric stating the column number of power production. |

`vcol` |
A numeric stating the column number of wind speed. |

`vrange` |
A vector of cut-in, rated, and cut-out wind speed. |

`rated.power` |
A numerical value stating the wind turbine rated power. |

`sample` |
A boolean (TRUE/FALSE) indicating whether to use sample or the whole data sets to train the power curve. |

`size` |
A numeric stating the size of sample when |

### Value

a list containing datasets with the imputed power.

### 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:100,], data2[1:120, ])
powercol = 7
vcol = 2
vrange = c(5,12,25)
rated.power = 100
sample = FALSE
imputed.dat = imptPower(data, powercol, vcol, vrange, rated.power, sample)
```

*DSWE*version 1.8.2 Index]