コード例 #1
0
 static FrameworkFactory()
 {
     Repository = new MemoryDataRepository();
     ActivationRepository = new AnalysisDataRepository();
     BeliefStateRepository = new AnalysisDataRepository();
     CumulativeRepository = new CumulativeDataRepository();
     CumulativeEpochRepository = new CumulativeEpochDataRepository();
     PercentageCorrectRepository = new PercentageCorrectDataRepository();
 }
        public void WhenDataIsRecordedAndGetDataIsCalled()
        {
            _firstTrial = 150;
            _secondTrial = 300;

            _rewardOne = -5;
            _rewardTwo = 10;

            var cumulativeDataRecorder = new CumulativeDataRepository();
            cumulativeDataRecorder.IncrementTrial(_firstTrial);
            cumulativeDataRecorder.Insert(_rewardOne);
            cumulativeDataRecorder.IncrementTrial(_secondTrial);
            cumulativeDataRecorder.Insert(_rewardTwo);
            _cumulativeRewardPerTestTrial = cumulativeDataRecorder.GetData();
        }
        public void WhenDataIsRecordedAndGetDataIsCalled()
        {
            _currentTrial = 150;
            _reward = -5;

            var cumulativeDataRecorder = new CumulativeDataRepository();
            cumulativeDataRecorder.IncrementTrial(_currentTrial);
            cumulativeDataRecorder.Insert(_reward);
            _cumulativeRewardPerTestTrial = cumulativeDataRecorder.GetData();
        }