spandsp
3.0.0
private/awgn.h
1
/*
2
* SpanDSP - a series of DSP components for telephony
3
*
4
* private/awgn.h - An additive Gaussian white noise generator
5
*
6
* Written by Steve Underwood <steveu@coppice.org>
7
*
8
* Copyright (C) 2001 Steve Underwood
9
*
10
* All rights reserved.
11
*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU Lesser General Public License version 2.1,
14
* as published by the Free Software Foundation.
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Lesser General Public License for more details.
20
*
21
* You should have received a copy of the GNU Lesser General Public
22
* License along with this program; if not, write to the Free Software
23
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24
*/
25
26
#if !defined(_SPANDSP_PRIVATE_AWGN_H_)
27
#define _SPANDSP_PRIVATE_AWGN_H_
28
29
/*!
30
AWGN generator descriptor. This contains all the state information for an AWGN generator.
31
*/
32
struct
awgn_state_s
33
{
34
/* Scaling factor */
35
double
rms;
36
/* Working data for the Gaussian generator */
37
bool
odd;
38
double
amp2;
39
/* Working data for the random number generator */
40
int32_t ix1;
41
int32_t ix2;
42
int32_t ix3;
43
double
r[97];
44
};
45
46
#endif
47
/*- End of file ------------------------------------------------------------*/
awgn_state_s
Definition:
private/awgn.h:32
src
spandsp
private
awgn.h
Generated by
1.8.13