get.halftime: Get half time by linear fitting

Description Usage Arguments Value Examples

View source: R/fit.R

Description

get half time according to http://www.amylofit.ch.cam.ac.uk The algorithm for the extraction of the half times proceeds as follows: first the middle part of the curve is selected, by determining when the average over several points is first above 0.3 and when the average is last below 0.7. The number of points to be averaged over depends on the number of points in the curve. A straight line is then fitted to this middle part of the curve, the point at which it crosses the value of 0.5 is recorded as the half time. (source: DOI: nprot.2016.010)

Usage

1

Arguments

time

vector of time

val

vector of values

Value

half time

Examples

1
2
get.halftime(c(1:10), c(0,1,2,3,4,5,6,7,8,9))
get.halftime(c(1:10), c(0,0,1,3,5,7,9,10,10,10))

gen5helper documentation built on March 26, 2020, 7:17 p.m.