fitRT-methods: Fitting Residence time (1-CDF)

Description Usage Arguments Details Value Examples

Description

Caclulate average residence time for trajecotries by fitting 1-CDF (survival distribution).

Usage

1
fitRT(trackll=NULL,x.max=30,N.min=1.5,t.interval=0.5)

Arguments

t.interval

time interval for image aquisition. Default 0.5 sec.

trackll

trajectory list generated by createTrackll() and processing. if NULL, user will be prompted to enter the trackll name.

x.max

The maximum range of X axis, i.e. time, for the output plot. Default 30 sec.

N.min

The minimal duration of trajectory length in the unit of second, trajectories shorter than N.min will be filtered out. Default 1.5 sec.

Details

Calculating average residence time of particles by fitting 1-CDF (survival distribution) of its trajectorys.

Upon running of the function, users will be prompted to input the name of the track list (trackll). Input processed, merged trackll and the fitting will start right away. The maximum time range to be plotted can be set using x.max, this will not change the fitting result. Fitting result is determined by the input trackll, and N.min (filtering of the trackll).

Value

Examples

1
2
3
4
5
6
7
8
9
# Generate trackll, and process,
# e.g. mask region of interest, merge tracks from multiple files.
folder=system.file("extdata","SWR1",package="smt")
trackll=createTrackll(interact=F,folder,input=1)
trackll=maskTracks(folder,trackll)
trackll=mergeTracks(folder,trackll)

# Fit the residence time of trackll
fitRT(trackll=NULL,x.max=30,N.min=1.5,t.interval=0.5)

snjy9182/smt documentation built on May 24, 2019, 7:19 a.m.