API

Modules

    Types and constants

    Functions and macros

      Documentation

      RadiationDetectorSignals.ArrayOfRDWaveforms — Type
      ArrayOfRDWaveforms = StructArray{<:RDWaveform, ...}

      A StructArrays.StructArray of RDWaveform.

      By default, uses ArraysOfArrays.VectorOfVectors for contiguous memory layout.

      sum, mean, var and std reduce sample-wise over all waveforms and return a single RDWaveform with the time axis of the first waveform, which the others must match. var and std apply Bessel's correction unless corrected = false. Sample types follow the underlying reductions, so narrow integer samples are summed in a wider type. Unequal signal lengths throw a DimensionMismatch, an empty array an ArgumentError.

      source
      RadiationDetectorSignals.RDBaseline — Type
      RDBaseline(level)

      A constant signal with amplitude level, independent of any time axis.

      Added to or subtracted from an RDWaveform, it shifts every sample by level, which must be dimensionally compatible with the samples. Baselines support the same algebra as waveforms, and + and - with a scalar.

      source
      RadiationDetectorSignals.RDWaveform — Type
      RDWaveform

      Represents a radiation detector signal waveform.

      Fields:

      • time: time axis, typically a range
      • signal: detector signal values

      Waveforms with equal time axes form a vector space: +, - and unary - on waveforms and *, / and \ with a real scalar keep the time axis. Floating-point time axes that differ by no more than a small fraction of the sampling step, as from rounding, count as equal, and the result keeps the time axis of the left operand. Combining waveforms with other time axes throws an ArgumentError. To shift all samples by a constant, add or subtract an RDBaseline.

      Use ArrayOfRDWaveforms for arrays of RDWaveform that have a compact memory layout.

      source