Example #1
0
 public void Add(int index, Weight weight) =>
 this.weightedStates.Add(new WeightedState(index, weight));
Example #2
0
 public WeightedState(int index, Weight weight)
 {
     this.Index          = index;
     this.WeightHighBits = (int)(BitConverter.DoubleToInt64Bits(weight.LogValue) >> 32);
     this.Weight         = weight;
 }