Description Usage Arguments Details Value References See Also Examples
View source: R/subspaceTestStat.R
Calculates the Subspace test statistic for all potential changepoint locations
within the time series. See cptSubspace
for more details.
1 |
X |
Data matrix of dimension n by p. |
subspaceDim |
Dimension of the latent subspace. |
msl |
Minimum segment length between changepoints. NOTE this should be greater than or equal to p. |
See cptSubspace
.
A numeric vector containing the test statistic at each potential changepoint location
Grundy2020changepoint.cov
1 2 3 4 | set.seed(1)
data <- subspaceDataGeneration(n=100,p=20,subspaceDim=5,tau=50,changeSize=0.5*sqrt(5))$data
ans <- subspaceTestStat(X=data,subspaceDim=5,msl=30)
which.max(ans)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.