data_to_spike: Get spikes from raw data

Description Usage Arguments Value

View source: R/Analyse_real_data.R

Description

Get spikes from raw data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data_to_spike(
  data,
  transients = 2000,
  time.step = 2,
  spike.occur = 0.6,
  val.change = NULL,
  reset = spike.occur,
  closeness = 40,
  rm.trend = TRUE
)

Arguments

data

time series data.

transients

transient periods where we want to remove spikes.

time.step

Vector of time from the time series data, or if step size is regular the time step of the experiment.

spike.occur

threshold where we record spikes.

val.change

vector of times where the threshold value changes.

reset

concentration at which we say a spike is over, default is set to spike.occur.

closeness

Value which if two spikes are within this distance they are merged.

rm.trend

Flag, where if TRUE we remove linear trends.

Value

spike sequence


JPNotts/Package documentation built on Oct. 5, 2021, 2:04 p.m.