ThirdOctaveBandsFiltering { public List<FiltersParameters> getFilterParameters() { return filterParameters; } ThirdOctaveBandsFiltering(int samplingRate, FREQUENCY_BANDS frequency_bands); static double[] getStandardFrequencies(FREQUENCY_BANDS frequency_bands); static double getSampleBufferDuration(FREQUENCY_BANDS frequency_bands); final double[] getStandardFrequencies(int samplingRate, double sampleDuration); List<FiltersParameters> getFilterParameters(); double[][] thirdOctaveFiltering(double[] signal); static final double[] STANDARD_FREQUENCIES_REDUCED; static final double[] STANDARD_FREQUENCIES_FULL; static final double[] STANDARD_OCTAVE_FREQUENCIES_REDUCED; }
@Test public void testReadCsv() { int samplingRate = 44100; ThirdOctaveBandsFiltering.FREQUENCY_BANDS frequencyBands = ThirdOctaveBandsFiltering.FREQUENCY_BANDS.REDUCED; ThirdOctaveBandsFiltering thirdOctaveBandsFiltering = new ThirdOctaveBandsFiltering(samplingRate, frequencyBands); List<ThirdOctaveBandsFiltering.FiltersParameters> filtersCoefficients = thirdOctaveBandsFiltering.getFilterParameters(); assertEquals(24, filtersCoefficients.size()); }