OLD | NEW |
| 1 % |
| 2 % Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 3 % |
| 4 % Use of this source code is governed by a BSD-style license |
| 5 % that can be found in the LICENSE file in the root of the source |
| 6 % tree. An additional intellectual property rights grant can be found |
| 7 % in the file PATENTS. All contributing project authors may |
| 8 % be found in the AUTHORS file in the root of the source tree. |
| 9 % |
| 10 |
1 function apmtest(task, testname, filepath, casenumber, legacy) | 11 function apmtest(task, testname, filepath, casenumber, legacy) |
2 %APMTEST is a tool to process APM file sets and easily display the output. | 12 %APMTEST is a tool to process APM file sets and easily display the output. |
3 % APMTEST(TASK, TESTNAME, CASENUMBER) performs one of several TASKs: | 13 % APMTEST(TASK, TESTNAME, CASENUMBER) performs one of several TASKs: |
4 % 'test' Processes the files to produce test output. | 14 % 'test' Processes the files to produce test output. |
5 % 'list' Prints a list of cases in the test set, preceded by their | 15 % 'list' Prints a list of cases in the test set, preceded by their |
6 % CASENUMBERs. | 16 % CASENUMBERs. |
7 % 'show' Uses spclab to show the test case specified by the | 17 % 'show' Uses spclab to show the test case specified by the |
8 % CASENUMBER parameter. | 18 % CASENUMBER parameter. |
9 % | 19 % |
10 % using a set of test files determined by TESTNAME: | 20 % using a set of test files determined by TESTNAME: |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 are_equal = true; | 356 are_equal = true; |
347 else | 357 else |
348 if isempty(new) | 358 if isempty(new) |
349 warning([newfile ' is empty']); | 359 warning([newfile ' is empty']); |
350 return | 360 return |
351 end | 361 end |
352 snr = snrseg(new,ref,80); | 362 snr = snrseg(new,ref,80); |
353 fprintf('\n'); | 363 fprintf('\n'); |
354 are_equal = false; | 364 are_equal = false; |
355 end | 365 end |
OLD | NEW |