public void CosTablesAreCorrect(int sizeBits) { Mdct.GenerateTrigTables(sizeBits, out _, out double[] cos); for (int i = 0; i < PreBuiltMdctTables.CosTables[sizeBits].Length; i++) { Assert.Equal(PreBuiltMdctTables.CosTables[sizeBits][i], cos[i], 14); } }
public void SinTablesAreCorrect(int sizeBits) { Mdct.GenerateTrigTables(sizeBits, out double[] sin, out _); for (int i = 0; i < PreBuiltMdctTables.SinTables[sizeBits].Length; i++) { Assert.Equal(PreBuiltMdctTables.SinTables[sizeBits][i], sin[i], 14); } }