This function helps to input all necessary information into the correct format for the cpt.geo
class.
This function is called when class=TRUE
. This is not intended for use by regular users of the package. It is exported for developers to call directly for speed and convenience.
WARNING: No checks on arguments are performed!
class_input(data.set, distance, angle, penalty, pen.value, test.stat,
msl, nquantiles, dist.cpts, ang.cpts)
An object of class cpt.geo
filled with the given attributes.
Data set used in multivariate changepoint analysis, see geomcp
for further details.
Vector containing the distance mappings
Vector containing the angle mappings
Penalty used as a text string, see geomcp
for further details.
Numerical penalty value used in the univariate analysis of the mapped time series.
The assumed test statistic/distribution of the univariate mapped time series as a text string. See geomcp
for further details.
Minimum segment length used in the analysis (positive integer).
Number of quantiles used in empirical distribution if using test.stat='Empirical'
.
Changepoint locations in distance mappings.
Changepoint locations in angle mappings.
Thomas Grundy
This function takes all the input required for the cpt.geo
class and enters it into an object.
This function is exported for developer use only. It does not perform any checks on inputs and is simply a convenience function for converting the output of the worker functions into a nice format for the cpt.geo
class.
geomcp
,plot-methods
,cpt.geo
#This function should only be used by developers, see its use in geomcp.
Run the code above in your browser using DataLab