//constructor
        public StimSweeper(SweepParameters parameters, SummitSystem theSummit, GroupNumber groupNum, string quitKey)
        {
            //assign all values
            m_sweepParameters = parameters;

            m_currentAmp        = m_sweepParameters.ampValues[0];
            m_currentPulseWidth = m_sweepParameters.pulseWidthValues[0];
            m_currentFreq       = m_sweepParameters.freqValues[0];

            m_stimPaused = false;
            m_summit     = theSummit;
            m_groupNum   = groupNum;

            m_stopSweep          = false;
            m_stimOutOfRangeFlag = false;
            m_sweepFinished      = true;
            m_quitKey            = quitKey;
        }
示例#2
0
 protected override ParameterSet CreateParamSet()
 {
     return(new ParameterSet(SweepParameters.Select(sweepParameter => sweepParameter[Host.Rand.Next(sweepParameter.Count)])));
 }
示例#3
0
 protected override ParameterSet CreateParamSet()
 {
     return(new ParameterSet(SweepParameters.Select(sweepParameter => sweepParameter.CreateFromNormalized(Host.Rand.NextDouble()))));
 }
示例#4
0
 protected override ParameterSet CreateParamSet()
 {
     return(new ParameterSet(SweepParameters.Select(sweepParameter => sweepParameter.CreateFromNormalized(AutoMlUtils.Random.Value.NextDouble()))));
 }