Description Usage Arguments Details Value
View source: R/utils-cumulative-dca.R
Compute the cumulative DCA of a sequence X.
1 | cumulative_dca(xs)
|
xs |
The sequence of values. |
The cumulative DCA is described by the follwing equations.
DCA[1] = X[1]
DCA[2] = X[1] • X[2] + X[2]
DCA[3] = X[1] • X[2] • X[3] + X[2] • X[3] + X[3]
DCA[N] = X[1] • ... • X[N] + X[2] • ... • X[N] + ... + X[N-1] • X[N] + X[N]
DCA[n] = sum(i = 1 to n) prod(j = i to n) X[j]
DCA[n] = DCA[n-1] * X[n] + X[n]
The cumulative DCA of the sequence X.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.