bg.adjust: Background adjustment (internal function)
Usage
bg.adjust(pm, n.pts = 2^14, ...)
bg.parameters(pm, n.pts = 2^14)
Arguments
n.pts
number of points to use in call to density
.
...
extra arguments to pass to bg.adjust.
Details
Assumes PMs are a convolution of normal and exponential. So we
observe X+Y where X is background and Y is signal. bg.adjust
returns E[Y|X+Y, Y>0] as our background corrected PM.
bg.parameters
provides ad hoc estimates of the parameters of the
normal and exponential distributions.