Description Usage Arguments Value Author(s) Examples
Computes max, min, mean, and standard deviation of temporal neighbors.
| 1 2 3 4 5 6 7 | max_neighbors(data, w, side, boundary = "reflecting")
min_neighbors(data, w, side, boundary = "reflecting")
mean_neighbors(data, w, side, boundary = "reflecting")
sd_neighbors(data, w, side, boundary = "reflecting")
 | 
| data | a numeric vector. Length of data must be greater than 1. | 
| w | window size. w must be odd and greater than 2 and smaller than double length of data. | 
| side | determines which side of neighbors of data point will be used in calculation. "left", "l": left temporal neighbors, "right", "r": right temporal neighbors, "both", "b": left and right temporal neighbors, "all", "a": data point and its left and right temporal neighbors. | 
| boundary | determines how data points in the beginning and end of the time series will be treated. "reflecting", "r": reflecting boundary condition, "periodic", "p": periodic boundary condition, "discard", "d", discarding data points in the beginning and end of the time series. See the vignette "Introduction to scorepeak" for detail. | 
a numeric vector
Shota Ochi
| 1 2 3 4 5 | data("ecgca102")
max_neighbors(ecgca102, 11, "all")
min_neighbors(ecgca102, 11, "all")
mean_neighbors(ecgca102, 11, "all")
sd_neighbors(ecgca102, 11, "all")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.