public override bool ComputeSignal() { DataPoint dp = null; //TODO: analyze the signal to look for stability //take the average... dp = new DataPoint(RawDataCache.First().Time, RawDataCache.Last().Time, this.RawDataCache.Select(p => p.YValue)); if (dp != null) { this.WriteLine(dp.ToString()); this.SensorDataSet.Add(dp); return true; } return false; }
public virtual bool AddRawData(DataPoint data) { WriteLine(data.ToString()); if (!IsPlotActivated) return true; try { SensorDataSet.Add(data); } catch { } return true; }