Learn R Programming

moveWindSpeed (version 0.2.4)

findGoodPoints: Function to find good points for estimation of phi

Description

The function tries to find non overlapping windows for phi optimization.

Usage

findGoodPoints(
  data,
  maxPointsToUseInEstimate,
  phiInitialEstimate,
  windowSize,
  ...
)

Value

a logical vector with the focal locations

Arguments

data

An move object.

maxPointsToUseInEstimate

The number of desired windows.

phiInitialEstimate

The initial value used for the autocorrelation when calculating the wind speed for finding suitable windows.

windowSize

An odd number providing the window size

...

passed on to getWindEstimates

Examples

Run this code
data(storks)
which(findGoodPoints( storks[[2]],
windowSize = 29,  isSamplingRegular = 1,
isThermallingFunction = getDefaultIsThermallingFunction(360, 4),  maxPointsToUseInEstimate = 10,
phiInitialEstimate = 0  ))

Run the code above in your browser using DataLab