/usr/include/gnuradio/channels/fading_model.h is in gnuradio-dev 3.7.9.1-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | /* -*- c++ -*- */
/*
* Copyright 2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
#ifndef INCLUDED_CHANNELS_FADING_MODEL_H
#define INCLUDED_CHANNELS_FADING_MODEL_H
#include <gnuradio/channels/api.h>
#include <gnuradio/sync_block.h>
#include <gnuradio/types.h>
namespace gr {
namespace channels {
/*!
* \brief fading simulator
* \ingroup channel_models_blk
*
* \details
* This block implements a basic fading model simulator that can
* be used to help evaluate, design, and test various signals,
* waveforms, and algorithms.
*/
class CHANNELS_API fading_model : virtual public sync_block
{
public:
// gr::channels::channel_model::sptr
typedef boost::shared_ptr<fading_model> sptr;
/*! \brief Build the channel simulator.
*
* \param N the number of sinusoids to use in simulating the channel; 8 is a good value
* \param fDTs normalized maximum Doppler frequency, fD * Ts
* \param LOS include Line-of-Site path? selects between Rayleigh (NLOS) and Rician (LOS) models
* \param K Rician factor (ratio of the specular power to the scattered power)
* \param seed a random number to seed the noise generators
*/
static sptr make(unsigned int N,
float fDTs=0.01,
bool LOS=true,
float K=4,
int seed=0);
virtual float fDTs() = 0;
virtual float K() = 0;
virtual float step() = 0;
virtual void set_fDTs(float fDTs) = 0;
virtual void set_K(float K) = 0;
virtual void set_step(float step) = 0;
};
} /* namespace channels */
} /* namespace gr */
#endif /* INCLUDED_CHANNELS_FADING_MODEL_H */
|