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)
66
public int Size { get { return
_numSampled
<= _cache.Length ? (int)
_numSampled
: _cache.Length; } }
68
public long NumSampled { get { return
_numSampled
; } }
89
if (
_numSampled
<= _cache.Length)
90
_getter(ref _cache[
_numSampled
- 1]);
91
else if (_rnd.NextDouble() *
_numSampled
< _cache.Length)
112
for (int i = 0; i <
_numSampled
; i++)