From e3b2ac5313c8663693f90e993733ed811edffbef Mon Sep 17 00:00:00 2001 From: Raj Bhattacharjea Date: Fri, 30 Mar 2007 10:42:23 -0400 Subject: [PATCH] Fixed NormalVariable::INFINITE_VALUE --- src/core/random-variable.cc | 1 + src/core/random-variable.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/random-variable.cc b/src/core/random-variable.cc index 0ae315b89..a02f77af9 100644 --- a/src/core/random-variable.cc +++ b/src/core/random-variable.cc @@ -399,6 +399,7 @@ RandomVariable* WeibullVariable::Copy() const //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- // NormalVariable methods +const double NormalVariable::INFINITE_VALUE = 1e307; NormalVariable::NormalVariable() : m_mean(0.0), m_variance(1.0), m_bound(INFINITE_VALUE), m_nextValid(false){} diff --git a/src/core/random-variable.h b/src/core/random-variable.h index 44dd553a3..602ad1832 100644 --- a/src/core/random-variable.h +++ b/src/core/random-variable.h @@ -30,7 +30,6 @@ * */ -#define INFINITE_VALUE 1e307 namespace ns3{ class RngStream; @@ -504,6 +503,7 @@ private: class NormalVariable : public RandomVariable { // Normally Distributed random var public: + static const double INFINITE_VALUE; /** * Constructs an normal random variable with a mean * value of 0 and variance of 1.