Description Usage Arguments Details Value
Calculates the intra-variable penalised cost (i.e. using only the alpha
penalty) for all variables for all possible previous changepoint vectors.
1 2 | calculate.alpha.cost(n, n.nonzero, x, x2, p, alpha, length.checklist,
cost.func = norm.meanvar)
|
n |
A matrix containing the lengths between the changepoints in current changepoint vector being considered and the changepoints in the check-list of previous changepoint vectors. |
n.nonzero |
A matrix containing the logical values indicating which of the corresponding values in |
x |
A |
x2 |
The same as |
p |
The number of variables in the series. |
alpha |
The variable-specific penalty, used to penalise the addition of a given changepoint into a given variable. A non-negative numeric value. |
length.checklist |
The number of possible previous changepoint vectors on the check-list being considered. |
cost.func |
The function being used to calculate the multivariate cost. Required to be a function (not a string name). |
An internal function, not designed for use by the end-user.
A vector of length length.checklist
containing the intra-variable penalised costs for each changepoint vector on the check-list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.