1 write to _numSampled
Microsoft.ML.Core (1)
Utilities\ReservoirSampler.cs (1)
166_numSampled++;
9 references to _numSampled
Microsoft.ML.Core (9)
Utilities\ReservoirSampler.cs (9)
145public int Size { get { return _numSampled <= _cache.Length ? (int)_numSampled : _cache.Length; } } 147public long NumSampled { get { return _numSampled; } } 169if (_numSampled <= _cache.Length) 171_getter(ref _cache[_numSampled - 1]); 174if (_numSampled == _cache.Length) 186int k = Stats.SampleFromBinomial(_rnd, _cache.Length, 1.0 / _numSampled); 230if (!_locked && _numSampled < _reservoir.Length) 235_reservoir[i] = _rnd.Next((int)_numSampled);