The contraction() function is used to graph the contraction measured with Aasted ChocoAnalyzer and calculate contraction speed in '% / min'

Function

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)

Contraction speed calculation

The contraction speed is calcolated as ratio :

knitr::include_graphics("Calcolo contraction.png")

Examples

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))

Reference

None



dan2cil/tecTools documentation built on Dec. 19, 2021, 8:04 p.m.