gainAGC: Automatic Gain Control (AGC) gain

gainAGCR Documentation

Automatic Gain Control (AGC) gain

Description

gainAGC applies an AGC (Automatic Gain Control) gain. The trace signal is smoothed with a Gaussian filter. The smoothed trace is substracted from the original trace, raised to power p, smoothed by a Gaussian filter and raised to power r to obtain the gain.

Usage

## S4 method for signature 'GPR'
gainAGC(x, w = 10, p = 2, r = 0.5, track = TRUE)

Arguments

x

[GPR class] An object of the class GPR.

w

[numeric(1)] Standard deviation of the Gaussian smoother (in trace unit).

p

[numeric(1)] Parameter of the power filter (b \geq 0). Usually, b = 1.

r

[numeric] Start time of the gain filter (if t0 = NULL, t0 is set equal to time0(x)).

Details

Spreading and Exponential Compensation (SEC) gain can be written as \exp(a \cdot t) \cdot t^b, where t^b is the power gain (set b = 1 to get a linear gain) and \exp(a \cdot t) is the exponential gain.

Modified slots

  • data: trace gained.

  • proc: updated with function name and arguments.

Value

[GPR class] An object of the class GPR.

See Also

gainSEC


emanuelhuber/RGPR documentation built on May 13, 2024, 9:31 p.m.