Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
yulewalk_sim.cpp
Package: simulation_wireless_c++.rar [view]
Upload User: jtjnyq9001
Upload Date: 2014-11-21
Package Size: 3974k
Code Size: 2k
Category:
3G develop
Development Platform:
Visual C++
- //
- // File = yulewalkpsd_sim.cpp
- //
- #define SIM_NAME "YuleWalkPsd"
- #define SIM_TITLE "Yule-Walker Psd Testbed"
- #include "global_stuff.h"
- #include "siganchr.h"
- #include "ar_proc_gen.h"
- #include "yule_walk_psd.h"
- #include "ar_spec.h"
- main()
- {
- #include "sim_preamble.cpp"
- //=========================================================================
- // Misc special processing
- double a_coeffs[3];
- a_coeffs[0] = 1.0;
- a_coeffs[1] = -0.65;
- a_coeffs[2] = 0.75;
- ArSpectrum *ar_spectrum = new ArSpectrum( 2,//true_ar_order,
- a_coeffs,
- 0.125,//0.0009765625, //samp interval
- 0.3, //true_ar_drv_var );
- 400,
- 4.0);
- ar_spectrum->DumpSpectrum( "ar_true_spec.txt",
- true);
- //=========================================================================
- // Allocate signals
- FLOAT_SIGNAL(test_sig);
- //============================================================
- // Construct, initialize and connect models
- ArProcessGenerator<float>* ar_sig_source = new ArProcessGenerator<float>(
- "ar_sig_source",
- CommSystem,
- test_sig);
- SignalAnchor* sig_anchr = new SignalAnchor( "sig_anchr",
- CommSystem,
- test_sig );
- YuleWalkerPsdEstim* spec_estimator =
- new YuleWalkerPsdEstim( "spec_estimator",
- CommSystem,
- test_sig );
- //=============================================================
- #include "sim_postamble.cpp"
- return 0;
- }