예제 #1
0
        public static IEnumerable <Stage> GenerateRepeatingStages(P300Paradigm.Configuration.TestConfig testConfig)
        {
            var stages = new LinkedList <Stage>();

            stages.AddLast(new Stage {
                Marker = MarkerDefinitions.TrialStartMarker, Duration = 0
            });
            var subTrialDuration = testConfig.SubTrialDuration;

            for (int i = 0; i < testConfig.SubTrialCount; i++)
            {
                stages.AddLast(new Stage {
                    Marker = P300Paradigm.SubTrialMarker, Duration = subTrialDuration
                });
            }
            stages.AddLast(new Stage {
                Marker = MarkerDefinitions.TrialEndMarker, Duration = testConfig.TrialInterval
            });
            return(stages);
        }
예제 #2
0
 public P300StageProvider(P300Paradigm.Configuration.TestConfig testConfig)
     : base(new DelayStageProvider(testConfig.TrialInterval), new RepeatingStageProvider.Simple(GenerateRepeatingStages(testConfig), testConfig.TrialCount))
 {
 }