Learn R Programming

takos (version 0.2.0)

TAPPA: Title Tangent area proportional method TAPPA

Description

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

Usage

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

Run this code
# NOT RUN {
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")
# }

Run the code above in your browser using DataLab