Spike_v1.m 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. classdef Spike_v1 < Waveform
  2. %SPIKE_V1: An extension of Waveform that represents a spike recorded by
  3. % spike detector in Axis.
  4. %
  5. % TriggerSampleOffset: Offset (in samples) from the start of the
  6. % waveform where the spike detector was
  7. % triggered
  8. %
  9. % StandardDeviation: RMS voltage value of the signal noise at the
  10. % time the spike was caputred
  11. %
  12. % ThresholdMultiplier: Multiplier(if applicable) of the RMS Noise that was
  13. % used as the trigger voltage for this spike
  14. %
  15. properties(GetAccess = public, Constant = true)
  16. LOADED_HEADER_SIZE = 30;
  17. end
  18. properties (GetAccess = public, SetAccess = private)
  19. TriggerSampleOffset
  20. StandardDeviation
  21. ThresholdMultiplier
  22. end
  23. methods
  24. function this = Spike_v1( ...
  25. aChannel, ...
  26. aStart, ...
  27. aData, ...
  28. aSource, ...
  29. aTriggerSampleOffset, ...
  30. aStandardDeviation, ...
  31. aThresholdMultiplier)
  32. if(nargin == 0)
  33. return;
  34. end
  35. this.Channel = aChannel;
  36. this.Start = aStart;
  37. this.Data = aData;
  38. this.Source = aSource;
  39. this.TriggerSampleOffset = aTriggerSampleOffset;
  40. this.StandardDeviation = aStandardDeviation;
  41. this.ThresholdMultiplier = aThresholdMultiplier;
  42. end
  43. end
  44. end