//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; }
protected override ParameterSet CreateParamSet() { return(new ParameterSet(SweepParameters.Select(sweepParameter => sweepParameter[Host.Rand.Next(sweepParameter.Count)]))); }
protected override ParameterSet CreateParamSet() { return(new ParameterSet(SweepParameters.Select(sweepParameter => sweepParameter.CreateFromNormalized(Host.Rand.NextDouble())))); }
protected override ParameterSet CreateParamSet() { return(new ParameterSet(SweepParameters.Select(sweepParameter => sweepParameter.CreateFromNormalized(AutoMlUtils.Random.Value.NextDouble())))); }