Sigma Threshold C++

Usage

sigthresh(x, e, threshold, sigma)

Arguments

x
a vector of values that a sigma threshold needs to be determined for
e
a vector of class "logical" indicating samples that should be excluded from any calculations
threshold
the starting threshold for the iterative algorithm
sigma
the number of standard deviations of separation between the threshold and the mean of the values below the threhold

Description

Iteratively converges on a threshold for which the mean of the values below the threshold is sigma standard deviations away from the threshold

Examples

d <- with(highspeed, pva(x,y,1250,1024,768,.38,.30,.67)) sigthresh(d$v,d$blinks,80,5)
[1] 137.2972