filter2.test
来自「speech signal process tools」· TEST 代码 · 共 78 行
TEST
78 行
#!/bin/sh# This material contains unpublished, proprietary software of # Entropic Research Laboratory, Inc. Any reproduction, distribution, # or publication of this work must be authorized in writing by Entropic # Research Laboratory, Inc., and must bear the notice: ## "Copyright (c) 1990-1992 Entropic Research Laboratory, Inc. # All rights reserved"## The copyright notice above does not evidence any actual or intended # publication of this source code. ## @(#)filter2.test 1.2 12/6/92 ERL# # Written by: Derek Lin# Checked by:# Revised by:# # Brief description: test script for filter2# ESPSCOM=./espscomexport ESPSCOMecho Make test sampled data filetestsd -a- test.sd << EOD1 0 0 0 0 0 0 0 0 0 0 EODecho " " echo filter2 the test sampled data fileecho " "echo "filter2 -PPfilter2 test.sd - | psps -H - > test"filter2 -PPfilter2 test.sd - | psps -H - > testecho " "echo "Compare test with ref (correct result)"echo diff test refcat > ref << EOD 1: 1.0000 3.0000 5.0000 7.0000 9.0000 6: 11.0000 13.0000 15.0000 17.0000 19.0000 11: 21.0000EODdiff test refecho " "echo diff should produce no outputecho " "echo "test multichannel filter2ing"cat > asc << EOD1 21 21 21 21 21 2EOD\rm test_mc.sdaddfea -T FEA_SD -f samples -t float -s2 -c" " asc test_mc.sd addgen -g record_freq -t double -v 8000.0 test_mc.sdecho "second column should be twice first column"filter2 -PPfilter2 test_mc.sd - | psps -H -echo " "echo "test multichannel complex filter2ing"cat > asc << EOD1 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -2EODaddfea -T FEA_SD -f samples -t float_cplx -c" " -s 2 asc test_cplx.sdaddgen -F -g record_freq -t double -v 8000.0 test_cplx.sdecho " "echo "imaginary part should be twice real part; data type should be double_cplx"echo "second field should be negative of first field"filter2 -PPfilter2 -d double_cplx test_cplx.sd - | psps -v -rm test.sd test test_mc.sd test_cplx.sd asc ref
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?