private void UpdateSpeedChannelDic(float Speed, ChannelType ct) { if (!m_SpeedChannelDic.ContainsKey(Speed)) { m_SpeedChannelDic.Add(Speed, ct); } }
private ChannelType GetChannelPaths(string Sql) { ChannelType result = new ChannelType(); char[] delimiterChars = { ' ' }; string[] array = Sql.Split(delimiterChars); for (int i = 1; i <= (array.Length / 2); i++) { float RelativeDelay = float.Parse(array[i * 2 - 1]); float RelativeMeanPower = float.Parse(array[i * 2]); result.ChannelPath.Add(RelativeDelay, RelativeMeanPower); } return result; }