Beispiel #1
0
        public void AddNewWaveform(VoltageWaveformAfterRegister genWave, int classifier)
        {
            int n = genWave.SampleAndReturnAsInt();

            if (n > 1023)
            {
                n = 1023;
            }
            learnedHistograms[classifier][n]++;
        }
Beispiel #2
0
        public void AddWaveformToSummationForVisualization(Chart targetChart, VoltageWaveformAfterRegister genWave2, int count)
        {
            waveformsSummed++;

            for (int i = 0; i < outputWaveformInMillivolts.Length; i++)
            {
                outputWaveformInMillivolts[i] += genWave2.outputWaveformInMillivolts[i];
            }

            string theName = targetChart.Legends[0].Name;

            targetChart.Series.Clear();
            PlotWaveform(targetChart, theName, count * 10);
        }
Beispiel #3
0
        public void AddWaveformForAnalysis(VoltageWaveformAfterRegister genWave)
        {
            int n = genWave.SampleAndReturnAsInt();

            histogramToClassify[n]++;
        }