示例#1
0
            public override void Add(IRow row)
            {
                var weightedIndexList = row.GetField <WeightedIndexList>(Index);

                if (weightedIndexList?.IndexList != null)
                {
                    foreach (var item in weightedIndexList.IndexList)
                    {
                        if (_curr.TryGetValue(item.Index, out var numericSummariser))
                        {
                            numericSummariser.Add(item.Weight);
                        }
                        else
                        {
                            var val = new NumericSummariser(-1);
                            val.Add(item.Weight);
                            _curr.Add(item.Index, val);
                        }
                    }
                }
            }
示例#2
0
            public override void Add(IRow row)
            {
                var date = row.GetField <DateTime>(Index);

                _numericSummary.Add(date.Ticks);
            }