This function computes the weight used for correlation using timepoints used and lags used
weight(t, lag, C)
t | a vector of timepoints |
---|---|
lag | a integer value of the lag used |
C | 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
#> $w #> [1] 0.2865048 0.2865048 0.2865048 0.2865048 #> #> $w0 #> [1] 0.2865048 #>#> $w #> [1] 0.9607894 0.9139312 0.7788008 0.8521438 0.7788008 0.9139312 #> #> $w0 #> [1] 0.8635818 #>