TAPPA: Title Tangent area proportional method TAPPA

Description Usage Arguments Value References Examples

View source: R/TAPPA.r

Description

calculates the background of a thermogram according to Tangent-area-proportional method

Usage

1
TAPPA(T, dAlpha, interval = 10, tol = 0.001)

Arguments

T

temperature

dAlpha

the da/dt values

interval

number of points to use for interpolating the two lines that will merge according to the area of the peak

tol

tollerance for the iterative process

Value

B baseline values

References

1. Svoboda R. Tangential area-proportional baseline interpolation for complex-process DSC data - Yes or no? Thermochim Acta. 2017;658:55-62. doi:10.1016/J.TCA.2017.10.011.2. Svoboda R. Linear baseline interpolation for single-process DSC data-Yes or no? Thermochim Acta. 2017;655:242-250. doi:10.1016/J.TCA.2017.07.008.

Examples

1
2
3
4
5
6
7
8
npoints=1000
x=seq(1,npoints)
y=(dnorm(seq(1,npoints), mean=npoints/2, sd=npoints/10)) #simulated peak
y2=y+(dnorm(seq(1,npoints), mean=npoints, sd=npoints/10)) #secondary simulated peak
y2[seq(npoints*0.735,npoints)]=y2[763] #flat the curve at the end of first peak
ytap=TAPPA(x,y2)
plot(x,y2)
lines(x,ytap,col="red")

Example output



takos documentation built on Jan. 13, 2021, 4:11 p.m.

Related to TAPPA in takos...