Description Usage Arguments Value Examples
Uses Derivative Dynamic Time Warping to align a given density A with a reference density B and transfers a reference threshold fromB to A.
1 | flAlignThreshold(dens, refDens, refThreshold)
|
dens |
A R density object with unknown threshold. |
refDens |
A reference R density object with known threshold. |
refThreshold |
The threshold belonging to refDens. |
A double value representing the threshold that resulted from aligning both densities and transferring the reference threshold. If refThreshold is NA, this method returns NA as well.
1 2 3 4 5 6 7 8 | dd <- flFind(flSampleDensdat, population = 'plasma', channelIdx = 1)
dens <- flGetDensity(flAt(dd, 1))
trueThresh <- flGetGate(flAt(dd, 1))[1]
refDens <- flGetDensity(flAt(dd, 2))
refThresh <- flGetGate(flAt(dd, 2))[1]
predictedThreshold <- flAlignThreshold(dens, refDens, refThresh)
flPlotDensThresh(dens, refThresh, trueThresh)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.