The contraction()
function is used to graph the contraction measured with Aasted ChocoAnalyzer and calculate contraction speed in '% / min'
Below the sintax of the function contraction()
:
ctest(path="~/SFTP_Area/ITA18_Project_Area/PTPM_Praline", nome="", poly.gr=6, d1_peak=2, d2_peak=c(3,4)))
where:
path : path to the file "~/SFTP_Area/ITA18_Project_Area/PTPM_Praline" nome : file name "" poly.gr : degree of the interpolator polynomial 6 d1_peak : number of peak of the first derivative to use 2 d2_peak : number of the two peaks of the second derivative to use c(3,4)
The contraction speed is calcolated as ratio :
knitr::include_graphics("Calcolo contraction.png")
In the following graph we could see the wrong selection of the second derivative peak with the default value of the d2_peak
: d2_peak=c(3, 4)
library(tecTools) contraction('../data', '2018.10.15 Contraction_Latte 2001_2018-10-11-14-38.csv')
...the same with the correct peaks selected : d2_peak=c(2, 3)
contraction('../data', '2018.10.15 Contraction_Latte 2001_2018-10-11-14-38.csv', d2_peak=c(2,3))
None
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.