stimArtifact: Utilize the point along a trace where the rate of change...

View source: R/stimArtifcat.R

stimArtifactR Documentation

Utilize the point along a trace where the rate of change between points is the greatest to identify the stim artifact.

Description

Utilize the point along a trace where the rate of change between points is the greatest to identify the stim artifact.

Usage

stimArtifact(x, adj = 0)

Arguments

x

Vector along with which to examine. Currently only supports one stim artifact per trace

adj

Make adjustments to how far up or down the trace from the stim artifact you want returned

Value

index along trace that matches the point where the difference between points is the greatest to identify the on phase of the stim artifact. This is necessary when trying to locate the response along the trace, but not having the Stim channel data.

Examples

## Not run: 
stimArtifact(field$traces$Bl_avg)

## End(Not run)

NRSC/nphys documentation built on Nov. 13, 2024, 2:12 a.m.