Description Usage Arguments Value Examples
View source: R/calc_CorrelationLength.R
Function to calculate the correlation length.
1 |
data |
|
plot |
|
A plot and a numeric
value of the correlation length.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Load example data
file <- system.file("extdata/raw.log", package = "roughness")
data <- import_Data(file)
# find and remove outliers
data_cleaned <- find_Outliers(data = data,
prefilter = TRUE,
method = c("iqr", "sd", "mad"),
remove = "mad",
window = FALSE,
width = 20,
step = 10,
hist = TRUE,
plot = TRUE)
# de-trend the data set
data_detrend <- detrend_Data(data_cleaned, plot = TRUE)
# calculate RMS
CL <- calc_CorrelationLength(data_detrend, plot = TRUE)
print(CL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.