Exemple #1
0
 public Cursor(IHostEnvironment env, string name, ListDataView <TRow> dataView,
               Func <int, bool> predicate, Random rand)
     : base(env, dataView, predicate)
 {
     Ch.AssertValueOrNull(rand);
     _data = dataView._data;
     if (rand != null)
     {
         _permutation = Utils.GetRandomPermutation(rand, dataView._data.Count);
     }
 }
 public Cursor(IChannelProvider provider, string name, ListDataView <TRow> dataView,
               Func <int, bool> predicate, IRandom rand)
     : base(provider, dataView, predicate)
 {
     Ch.AssertValueOrNull(rand);
     _data = dataView._data;
     if (rand != null)
     {
         _permutation = Utils.GetRandomPermutation(rand, dataView._data.Count);
     }
 }