getFeatures: Extracting acoustic emission features.

Description Usage Arguments Value

View source: R/getFeatures.R

Description

Extracts several acoustic emission features from a waveform as defined in Sause's PhD thesis table 2.2, p. 50.

Usage

1
2
3
4
5
6
getFeatures(wave = makeSource()$waveform, xlim = c(0, duration(wave)),
  samp.rate = 1e+07, preAmpGain = 40, preTriggerSamples = 0,
  threshold = 0.01, maxDuration = 0.05, maxHitNum = 5000,
  HDT = 1e-04, HLT = 1e-05, PDT = 5e-05, powerLimits = rbind(c(0,
  250000), c(250000, 5e+05), c(5e+05, 750000), c(750000, 1e+06)),
  plot = FALSE)

Arguments

wave

The waveform as a Wave object, Default: makeSource()$waveform

xlim

The x limits (x1, x2) of the plot. Note that x1 > x2 is allowed and leads to a ‘reversed axis’., Default: c(0, duration(wave))

samp.rate

Sampling rate of the Wave in Hz, Default: 1e+07

preAmpGain

Pre-amplifier gain in dB, Default: 40

preTriggerSamples

Number of pre-trigger samples, Default: 0

threshold

Thershold in V, Default: 0.01

maxDuration

Max hit duration in s, Default: 0.05

maxHitNum

Maximum number of hits extracted, Default: 5000

HDT

Hit definition time in s, Default: 1e-04

HLT

Hit lockout time in s, Default: 1e-05

PDT

Peak definition time in s, Default: 5e-05

powerLimits

Ranges of the four partial power features, Default: rbind(c(0, 250000), c(250000, 5e+05), c(5e+05, 750000), c(750000, 1e+06))

plot

If TRUE, plots the waveform with indications of the threshold and some features, Default: FALSE

Value

A list object with the extracted acoustic emission features for each detected hit in the waveform. It also includes the start, peak and end indexes of the hits.


gmxavier/pongaR documentation built on Sept. 7, 2021, 1:06 p.m.