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); }
public DenormalizedProbability(Dictionary <T, float> src) { _weights = new Dictionary <T, float>(src); Norm = new Dataflow <Dictionary <T, float>, double>(_weights, _current_norm); }