Example #1
0
        public DenormalizedProbability(DenormalizedProbability <T> src)
        {
#if DEBUG
            if (null == src)
            {
                throw new ArgumentNullException(nameof(src));
            }
#endif
            _weights = new Dictionary <T, float>(src._weights);
            Norm     = new Dataflow <Dictionary <T, float>, double>(_weights, _current_norm);
        }
Example #2
0
 public DenormalizedProbability(Dictionary <T, float> src)
 {
     _weights = new Dictionary <T, float>(src);
     Norm     = new Dataflow <Dictionary <T, float>, double>(_weights, _current_norm);
 }