Пример #1
0
        public void UpdateStateFrequency()
        {
            _stateFrequency = ((int)_expectedStateSizeInMb / Settings.MemStateGapDivider / 1024)
                              .Clamp(MinFrequency, MaxFrequency);

            _decay.UpdateSettings(MaxStates, _stateFrequency, 4);
            LimitStateCount();
        }
Пример #2
0
        public void UpdateStateFrequency()
        {
            _stateFrequency = NumberExtensions.Clamp(
                ((int)_expectedStateSize / Settings.MemStateGapDivider / 1024),
                _minFrequency, _maxFrequency);

            _decay.UpdateSettings(_maxStates, _stateFrequency, 4);
        }