Ejemplo n.º 1
0
 private void radioButton_spikesReferencingCommonMedian_CheckedChanged(object sender, EventArgs e)
 {
     lock (this)
     {
         if (radioButton_spikesReferencingCommonMedian.Checked)
         {
             referncer = new Filters.CommonMedianReferencer(spikeBufferLength, numChannels);
         }
     }
 }
Ejemplo n.º 2
0
 //Reset dig referencer
 private void resetReferencers()
 {
     if (radioButton_spikeReferencingNone.Checked)
     {
         referncer = null;
     }
     else if (radioButton_spikesReferencingCommonAverage.Checked)
     {
         referncer = new
                     Filters.CommonAverageReferencer(spikeBufferLength);
     }
     else if (radioButton_spikesReferencingCommonMedian.Checked)
     {
         referncer = new
                     Filters.CommonMedianReferencer(spikeBufferLength, numChannels);
     }
     else if (radioButton_spikesReferencingCommonMedianLocal.Checked)
     {
         int channelsPerGroup =
             Convert.ToInt32(numericUpDown_CommonMedianLocalReferencingChannelsPerGroup.Value);
         referncer = new
                     Filters.CommonMedianLocalReferencer(spikeBufferLength, channelsPerGroup, numChannels / channelsPerGroup);
     }
 }
Ejemplo n.º 3
0
 //Reset dig referencer
 private void resetReferencers()
 {
     if (radioButton_spikeReferencingNone.Checked)
         referncer = null;
     else if (radioButton_spikesReferencingCommonAverage.Checked)
     {
         referncer = new
         Filters.CommonAverageReferencer(spikeBufferLength);
     }
     else if (radioButton_spikesReferencingCommonMedian.Checked)
     {
         referncer = new
         Filters.CommonMedianReferencer(spikeBufferLength, numChannels);
     }
     else if (radioButton_spikesReferencingCommonMedianLocal.Checked)
     {
         int channelsPerGroup =
         Convert.ToInt32(numericUpDown_CommonMedianLocalReferencingChannelsPerGroup.Value);
         referncer = new
         Filters.CommonMedianLocalReferencer(spikeBufferLength, channelsPerGroup, numChannels / channelsPerGroup);
     }
 }
Ejemplo n.º 4
0
 private void radioButton_spikesReferencingCommonMedian_CheckedChanged(object sender, EventArgs e)
 {
     lock (this)
     {
         if (radioButton_spikesReferencingCommonMedian.Checked)
             referncer = new Filters.CommonMedianReferencer(spikeBufferLength, numChannels);
     }
 }