public uint getSampleAmount(Vector<double> signal) { if (signal != null) sampleAmount = (uint)signal.Count; return sampleAmount; }