Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

TestArray.cc

Go to the documentation of this file.
00001 /*
00002 
00003     Test array classes
00004     Copyright (C) 1999-2000 Jussi Laako
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 
00020 */
00021 
00022 
00023 #include <stdio.h>
00024 
00025 #include "ArrayDipole.hh"
00026 
00027 
00028 int main(int argc, char *argv[])
00029 {
00030     clArrayDipole Dipole;
00031 
00032     Dipole.Initialize(2.0, 1430.0, 44100, 512, 100.0, true);
00033     printf("Sensor 0: 0 %.5f/%li 45 %.5f/%li 90 %.5f/%li\n", 
00034         Dipole.GetDelayTime(0, 0.0) * 1000.0, Dipole.GetDelaySamples(0, 0.0),
00035         Dipole.GetDelayTime(0, 0.785) * 1000.0, Dipole.GetDelaySamples(0, 0.785),
00036         Dipole.GetDelayTime(0, 1.571) * 1000.0, Dipole.GetDelaySamples(0, 1.571));
00037     printf("Sensor 1: 0 %.5f/%li 45 %.5f/%li 90 %.5f/%li\n",
00038         Dipole.GetDelayTime(1, 0.0) * 1000.0, Dipole.GetDelaySamples(1, 0.0),
00039         Dipole.GetDelayTime(1, 0.785) * 1000.0, Dipole.GetDelaySamples(1, 0.785),
00040         Dipole.GetDelayTime(1, 1.571) * 1000.0, Dipole.GetDelaySamples(1, 1.571));
00041     printf("Sensor 0: -0 %.5f/%li -45 %.5f/%li -90 %.5f/%li\n",
00042         Dipole.GetDelayTime(0, -0.0) * 1000.0, Dipole.GetDelaySamples(0, -0.0),
00043         Dipole.GetDelayTime(0, -0.785) * 1000.0, Dipole.GetDelaySamples(0, -0.785),
00044         Dipole.GetDelayTime(0, -1.571) * 1000.0, Dipole.GetDelaySamples(0, -1.571));
00045     printf("Sensor 1: -0 %.5f/%li -45 %.5f/%li -90 %.5f/%li\n",
00046         Dipole.GetDelayTime(1, -0.0) * 1000.0, Dipole.GetDelaySamples(1, -0.0),
00047         Dipole.GetDelayTime(1, -0.785) * 1000.0, Dipole.GetDelaySamples(1, -0.785),
00048         Dipole.GetDelayTime(1, -1.571) * 1000.0, Dipole.GetDelaySamples(1, -1.571));
00049     Dipole.Uninitialize();
00050 }
00051 

Generated on Sun Oct 26 19:11:23 2003 for HASAS by doxygen 1.3.3