private/awgn.h

00001 /*
00002  * SpanDSP - a series of DSP components for telephony
00003  *
00004  * private/awgn.h - An additive Gaussian white noise generator
00005  *
00006  * Written by Steve Underwood <steveu@coppice.org>
00007  *
00008  * Copyright (C) 2001 Steve Underwood
00009  *
00010  * All rights reserved.
00011  *
00012  * This program is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU Lesser General Public License version 2.1,
00014  * as published by the Free Software Foundation.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU Lesser General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Lesser General Public
00022  * License along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00024  *
00025  * $Id: awgn.h,v 1.1 2008/11/30 12:38:27 steveu Exp $
00026  */
00027 
00028 #if !defined(_SPANDSP_PRIVATE_AWGN_H_)
00029 #define _SPANDSP_PRIVATE_AWGN_H_
00030 
00031 /*!
00032     AWGN generator descriptor. This contains all the state information for an AWGN generator.
00033  */
00034 struct awgn_state_s
00035 {
00036     double rms;
00037     long int ix1;
00038     long int ix2;
00039     long int ix3;
00040     double r[98];
00041     double gset;
00042     int iset;
00043 };
00044 
00045 #endif
00046 /*- End of file ------------------------------------------------------------*/

Generated by  doxygen 1.6.2