Create a parameter object for the function createOcpModel
createOcpArgs(
oCPD = NULL,
missPts = "none",
hazardFunc = function(x, lambda) {
ocp::const_hazard(x, lambda = 100)
},
probModel = list("g"),
initParams = list(list(m = 0, k = 0.01, a = 0.01, b = 1e-04)),
multivariate = FALSE,
cpthreshold = 0.5,
truncRlim = .Machine$double.xmin,
minRlength = 1,
maxRlength = 10^4,
minsep = 1,
maxsep = 10^4,
timing = FALSE,
getR = FALSE,
optionalOutputs = FALSE,
printupdates = FALSE
)
ocp object computed in a previous run of an algorithm. it can be built upon with the input data points, as long as the settings for both are the same.
This setting indicates how to deal with missing points (e.g. NA). The options are: "mean", "prev", "none", and a numeric value. If the data is multivariate. The numeric replacement value could either be a single value which would apply to all dimensions, or a vector of the same length as the number of dimensions of the data.
This setting allows choosing a hazard function, and also setting the constants within that function. For example, the default hazard function is: function(x, lambda)const_hazard(x, lambda=100) and the lambda can be set as appropriate.
This parameter is a function to be used to calculate the predictive probabilities and update the parameters of the model. The default setting uses a gaussian underlying distribution: "gaussian"
The parameters used to initialize the probability model. The default settings correspond to the input default gaussian model.
This setting indicates if the incoming data is multivariate or univariate.
Probability threshold for the method of extracting a list of all changepoints that have a run length probability higher than a specified value. The default is set to 0.5.
The probability threshold to begin truncating the R vector. The R vector is a vector of run-length probabilities. To prevent truncation, set this to 0. The defaults setting is 10^(-4) as suggested by the paper.
The minimum size the run length probabilities vector must be before beginning to check for the truncation threshold.
The maximum size the R vector is allowed to be, before enforcing truncation to happen.
This setting constrains the possible changepoint locations considered in determining the optimal set of changepoints. It prevents considered changepoints that are closer together than the value of minsep. The default is 3.
This setting constrains the possible changepoint locations considered in determining the optimal set of changepoints. It prevents considered changepoints that are closer farther apart than the value of maxsep. The default is 100.
To print out times during the algorithm running, to track its progress, set this setting to true.
To output the full R matrix, set this setting to TRUE. Outputting this matrix causes a major slow down in efficiency.
Output additional values calculated during running the algorithm, including a matrix containing all the input data, the predictive probability vectors at each step of the algorithm, and the vector of means at each step of the algorithm.
This setting prints out updates on the progress of the algorithm if set to TRUE.
Create an object defining the parameter values for use with the createOcpModel function
[ocp::onlineCPD()] which this function wraps its arguments.