예제 #1
0
 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);
 }
예제 #2
0
파일: Signal.cs 프로젝트: Skoth/KSPCommEngr
 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;
 }