Get() public method

Gets the filtered value of the input without pushing a new value to the internal buffer
public Get ( ) : double
return double
コード例 #1
0
 public void FilterPositive()
 {
     InputFilter t = new InputFilter(0);
     Assert.AreEqual(0, t.Get(), 0);
     for(int i = 0; i < InputFilter.BufferLength; i++)
     {
         t.Get(1);
     }
     Assert.AreEqual(1, t.Get(), 0);
 }
コード例 #2
0
 public void ReInitializeTest()
 {
     InputFilter t = new InputFilter();
     t.ReInitialize(1);
     Assert.AreEqual(1, t.Get(), 0);
 }