powered by
This function computes the weight used for correlation using timepoints used and lags used
weight(t, lag, C)
a vector of timepoints
a integer value of the lag used
a numeric of the constant used in the penalty and weight inside the Gaussian kernel
a list containing w0 and vector w used for computing weighted correlation
# NOT RUN { weight(t = c(0, 5, 10, 15, 20), lag = 1, C = 20) weight(t = c(0, 2, 5, 10, 14, 19, 22), lag = 1,C = 100) # }
Run the code above in your browser using DataLab