public void TransformSignal() { ITransform lpf = new CommBlock(nodeFace.LowpassFilter, new UnityEngine.Rect(0f, 0f, 0f, 0f)); Signal x = new Signal(); Signal y = lpf.TransferFunction(x); Assert.AreNotEqual(x, y); }
public static Signal operator -(Signal u, Signal v) { if (u.Count != v.Count) return null; Signal w = new Signal(); for (int i = 0; i < w.Count; ++i) { w[i] = u[i] - v[i]; } return w; }