/// <summary>
        /// Returns the sample list representing the last received sample of the given label. Can be redefined in children classes.
        /// </summary>
        /// <param name="label">The label to get the sample.</param>
        /// <returns>A float list representing the sample of the given label.</returns>
        public virtual List <float> GetSample(string label)
        {
            if (SampleList.ContainsKey(label))
            {
                return(SampleList[label].Sample);
            }

            return(new List <float>());
        }
 /// <summary>
 /// Checks if this set of data has sample information about the given label.
 /// </summary>
 /// <param name="label">The label to search for samples</param>
 /// <returns>Returns true if the <see cref="SampleList"/> dictionary has any key equals to the given label.</returns>
 public bool ContainsSample(string label)
 {
     return(SampleList.ContainsKey(label));
 }
Example #3
0
 /// <summary>
 /// Returns the sample list representing the last received sample of the given label. Can be redefined in children classes.
 /// </summary>
 /// <param name="label">The label to get the sample.</param>
 /// <returns>A float list representing the sample of the given label.</returns>
 public virtual List <float> GetSample(string label)
 {
     lock (SampleLocks[label])
         return(SampleList.ContainsKey(label) ? SampleList[label].Sample : new List <float>());
 }