Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
receiver.h
Go to the documentation of this file.
1 /*
2  * receiver.h - EMI receiver class definitions
3  *
4  * Copyright (C) 2009 Dirk Schaefer <schad@5pm.de>
5  * Copyright (C) 2009 Stefan Jahn <stefan@lkcc.org>
6  *
7  * This is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  *
12  * This software is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this package; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  *
22  * $Id$
23  *
24  */
25 
26 #ifndef __RECEIVER_H__
27 #define __RECEIVER_H__
28 
29 namespace qucs {
30 
31 namespace emi {
32 
33  // receiver setting
34  struct settings {
35  nr_double_t start;
36  nr_double_t stop;
37  nr_double_t stepsize;
38  nr_double_t bandwidth;
39  };
40 
41  // internal helper functions
42  nr_int32_t nearestbin32 (int);
43  nr_double_t f_2ndorder (nr_double_t, nr_double_t, nr_double_t);
44  nr_double_t f_gauss (nr_double_t, nr_double_t, nr_double_t);
45  nr_double_t f_ideal (nr_double_t, nr_double_t, nr_double_t);
46  qucs::vector * receiver (nr_double_t *, nr_double_t, int);
47 
48  // external functionality
49  qucs::vector * receiver (qucs::vector *, qucs::vector *, int len = -1);
50 
51 } // namespace emi
52 
53 } // namespace qucs
54 
55 #endif /* __RECEIVER_H__ */
nr_double_t stepsize
Definition: receiver.h:37
nr_double_t start
Definition: receiver.h:35
qucs::vector * receiver(nr_double_t *, nr_double_t, int)
Definition: receiver.cpp:88
nr_double_t f_gauss(nr_double_t, nr_double_t, nr_double_t)
Definition: receiver.cpp:78
nr_double_t stop
Definition: receiver.h:36
nr_int32_t nearestbin32(int)
Definition: receiver.cpp:48
nr_double_t bandwidth
Definition: receiver.h:38
nr_double_t f_ideal(nr_double_t, nr_double_t, nr_double_t)
Definition: receiver.cpp:58
nr_double_t f_2ndorder(nr_double_t, nr_double_t, nr_double_t)
Definition: receiver.cpp:69