public void AddNewWaveform(VoltageWaveformAfterRegister genWave, int classifier) { int n = genWave.SampleAndReturnAsInt(); if (n > 1023) { n = 1023; } learnedHistograms[classifier][n]++; }
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); }
public void AddWaveformForAnalysis(VoltageWaveformAfterRegister genWave) { int n = genWave.SampleAndReturnAsInt(); histogramToClassify[n]++; }