Class EventBase
The base class for all Event style results.
Inherited Members
Namespace: AnalysisBase.ResultBases
Assembly: AnalysisBase.dll
Syntax
public abstract class EventBase : ResultBase, IComparable<ResultBase>, IComparable
Properties
| Improve this Doc View SourceEventStartSeconds
Gets or sets the Event's Start Seconds. IMPORTANT: This field is time offset relative to the recording. It automatically updates ResultStartSeconds when set.
Declaration
public virtual double EventStartSeconds { get; set; }
Property Value
Type | Description |
---|---|
Double |
Remarks
2017-09: This field USED to be offset relative to the current segment. 2017-09: This field is NOW equivalent to ResultStartSeconds.
Score
Gets or sets a score for the event.
Declaration
public virtual double Score { get; set; }
Property Value
Type | Description |
---|---|
Double |
Remarks
The meaning, range, and behaviour of the value is purposely undefined. It varies with each algorithm used and we recommend that you only compare values as relative measures between events produced by the same algorithm.
If a particular recogniser wishes to define semantics for this value, it should: - Override this property and add relevant documentation. - Or add a new property (that possibly aliases this value) that defines and documents its semantics.
SegmentStartSeconds
Gets or sets the time (in seconds) from start of the file/recording to start of the current audio segment.
Declaration
public virtual double SegmentStartSeconds { get; set; }
Property Value
Type | Description |
---|---|
Double |
Remarks
EventStartSeconds will always be greater than or equal to SegmentStartSeconds.
Methods
| Improve this Doc View SourceSetEventStartRelative(TimeSpan, Double)
Sets both the Segment start and the Event start.
segmentStart
is measured relative to the start of the recording.
eventStartSegmentRelative
is measured relative to the start of the segment.
This method sets both SegmentStartSeconds and EventStartSeconds which
are both measured relative to the start of the recording.
Declaration
protected void SetEventStartRelative(TimeSpan segmentStart, double eventStartSegmentRelative)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | segmentStart | |
Double | eventStartSegmentRelative |