1 write to _numSampled
Microsoft.ML.Core (1)
Utilities\ReservoirSampler.cs (1)
86_numSampled++;
7 references to _numSampled
Microsoft.ML.Core (7)
Utilities\ReservoirSampler.cs (7)
66public int Size { get { return _numSampled <= _cache.Length ? (int)_numSampled : _cache.Length; } } 68public long NumSampled { get { return _numSampled; } } 89if (_numSampled <= _cache.Length) 90_getter(ref _cache[_numSampled - 1]); 91else if (_rnd.NextDouble() * _numSampled < _cache.Length) 112for (int i = 0; i < _numSampled; i++)