User Manual, Developers Guide and API Documentation

Rice.hpp

Go to the documentation of this file.
00001 /******************************************************************************
00002  * WNS (Wireless Network Simulator)                                           *
00003  * __________________________________________________________________________ *
00004  *                                                                            *
00005  * Copyright (C) 2004-2006                                                    *
00006  * Chair of Communication Networks (ComNets)                                  *
00007  * Kopernikusstr. 16, D-52074 Aachen, Germany                                 *
00008  * phone: ++49-241-80-27910 (phone), fax: ++49-241-80-22242                   *
00009  * email: wns@comnets.rwth-aachen.de                                          *
00010  * www: http://wns.comnets.rwth-aachen.de                                     *
00011  ******************************************************************************/
00012 
00013 #ifndef WNS_DISTRIBUTION_RICE_HPP
00014 #define WNS_DISTRIBUTION_RICE_HPP
00015 
00016 #include <WNS/distribution/Distribution.hpp>
00017 
00018 #include <WNS/distribution/Norm.hpp>
00019 
00020 namespace wns { namespace distribution {
00025     class Rice :
00026         public Distribution
00027     {
00028     public:
00029         explicit
00030         Rice(double mean, double variance, wns::rng::RNGen* rng);
00031 
00032         explicit
00033         Rice(const pyconfig::View& config);
00034 
00035         explicit
00036         Rice(wns::rng::RNGen* rng, const pyconfig::View& config);
00037 
00038         virtual
00039         ~Rice();
00040 
00041         virtual double
00042         operator()();
00043 
00044         virtual std::string
00045         paramString() const;
00046 
00047     private:
00048         double losFactor_;
00049         double variance_;
00050 
00051         Norm disA_;
00052         Norm disB_;
00053     }; // Geometric
00054 } // distribution
00055 } // wns
00056 
00057 #endif // NOT defined WNS_DISTRIBUTION_RICE_HPP
00058 
00059 /*
00060   Local Variables:
00061   mode: c++
00062   fill-column: 80
00063   c-basic-offset: 8
00064   c-comment-only-line-offset: 0
00065   c-tab-always-indent: t
00066   indent-tabs-mode: t
00067   tab-width: 8
00068   End:
00069 */
00070 

Generated on Fri May 25 03:31:38 2012 for openWNS by  doxygen 1.5.5