![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /******************************************************************************* 00002 * This file is part of openWNS (open Wireless Network Simulator) 00003 * _____________________________________________________________________________ 00004 * 00005 * Copyright (C) 2004-2007 00006 * Chair of Communication Networks (ComNets) 00007 * Kopernikusstr. 16, D-52074 Aachen, Germany 00008 * phone: ++49-241-80-27910, 00009 * fax: ++49-241-80-22242 00010 * email: info@openwns.org 00011 * www: http://www.openwns.org 00012 * _____________________________________________________________________________ 00013 * 00014 * openWNS is free software; you can redistribute it and/or modify it under the 00015 * terms of the GNU Lesser General Public License version 2 as published by the 00016 * Free Software Foundation; 00017 * 00018 * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY 00019 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00020 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00021 * details. 00022 * 00023 * You should have received a copy of the GNU Lesser General Public License 00024 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00025 * 00026 ******************************************************************************/ 00027 00028 #ifndef WNS_EVALUATION_STATISTICS_DLREG_HPP 00029 #define WNS_EVALUATION_STATISTICS_DLREG_HPP 00030 00031 00032 #include <WNS/evaluation/statistics/dlre.hpp> 00033 00034 namespace wns { namespace evaluation { namespace statistics { 00040 class DLREG : public DLRE 00041 { 00042 public: 00043 00047 DLREG(std::vector<double> xValuesArr, 00048 int level, 00049 double error, 00050 double preFirst, 00051 std::string name, 00052 std::string description, 00053 bool forceRMinusAOk, 00054 double gMin, 00055 int maxNrv, 00056 int skipInterval, 00057 formatType format); 00058 00062 DLREG(double xMin, 00063 double xMax, 00064 double intSize, 00065 double error, 00066 double preFirst, 00067 std::string name, 00068 std::string description, 00069 bool forceRMinusAOk, 00070 double gMin, 00071 int maxNrv, 00072 int skipInterval, 00073 formatType aFormat); 00074 00075 DLREG(const wns::pyconfig::View& config); 00076 00077 ~DLREG(); 00078 00082 virtual void 00083 print(std::ostream& stream = std::cout) const; 00084 00088 void 00089 put(double value); 00090 00094 virtual double 00095 curGLev() const; 00096 00100 virtual double 00101 g(double xt) const; 00102 00106 virtual void 00107 getResultLine(const int index, ResultLine& line) const; 00108 00112 virtual void 00113 changeError(double newError); 00114 00115 private: 00116 00117 // runtime control 00118 DLRE::Phase rtc(); 00119 00120 // minimum g level 00121 double gMin_; 00122 00123 }; 00124 00125 } // end namespace statistics 00126 } // end namespace evaluation 00127 } // end namespace wns 00128 #endif // WNS_EVALUATION_STATISTICS_DLREG_HPP
1.5.5