public void SparKernelConstructorTest() { const float minFreq = 318F; const float maxFreq = 2000F; const int bins = 12; const float frequencyRate = 5512F; const float threshold = 0.0054F; IWindowFunction function = new HanningWindow(); SparKernel target = new SparKernel(minFreq, maxFreq, bins, frequencyRate, threshold, function); Assert.IsNotNull(target.SparKernelVector); }
public void SparKernelVectorTest() { const float minFreq = 318; const float maxFreq = 2000; const int bins = 12; const float frequencyRate = 5512; const float threshold = 0.0054f; IWindowFunction function = new HanningWindow(); SparKernel target = new SparKernel(minFreq, maxFreq, bins, frequencyRate, threshold, function); Complex[][] actual = target.SparKernelVector; Assert.IsNotNull(actual); }