initAFFMeanCD | R Documentation |
This function makes it simple to initalise an FFF object.
initAFFMeanCD(alpha = 0.01, eta = 0.01, BL = 50)
alpha |
The value of the significance level.
Default value is |
eta |
The value of the step-size in the gradient descent.
Default is |
BL |
The length of the burn-in region. Default value is |
An AFF mean change detector object.
library(Rcpp)
affmeancd1 <- initAFFMeanCD() # initialises with alpha=0.01,
# eta=0.01 and BL=50
affmeancd2 <- initAFFMeanCD(alpha=0.005, eta=0.1, BL=100)
affmeancd3 <- initAFFMeanCD(alpha=0.005, eta=0.1, BL=0) # Example 3
affmeancd3$streamEstMean <- 0
affmeancd3$streamEstSigma <- 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.