From 73a14518e712abef447b703e6e4b5bac2047a960 Mon Sep 17 00:00:00 2001 From: Tommaso Pecorella Date: Mon, 30 Aug 2021 20:57:24 +0000 Subject: [PATCH] core: (fixes #444) Remove Pareto::Mean attribute --- src/core/model/random-variable-stream.cc | 7 ------- src/core/model/random-variable-stream.h | 3 --- 2 files changed, 10 deletions(-) diff --git a/src/core/model/random-variable-stream.cc b/src/core/model/random-variable-stream.cc index a07e9bed7..252733510 100644 --- a/src/core/model/random-variable-stream.cc +++ b/src/core/model/random-variable-stream.cc @@ -455,12 +455,6 @@ ParetoRandomVariable::GetTypeId (void) .SetParent() .SetGroupName ("Core") .AddConstructor () - .AddAttribute ("Mean", "The mean parameter for the Pareto distribution returned by this RNG stream.", - DoubleValue (0.0), - MakeDoubleAccessor (&ParetoRandomVariable::m_mean), - MakeDoubleChecker(), - TypeId::DEPRECATED, - "Not anymore used. Use 'Scale' instead - changing this attribute has no effect.") .AddAttribute ("Scale", "The scale parameter for the Pareto distribution returned by this RNG stream.", DoubleValue (1.0), MakeDoubleAccessor (&ParetoRandomVariable::m_scale), @@ -481,7 +475,6 @@ ParetoRandomVariable::ParetoRandomVariable () // m_shape, m_shape, and m_bound are initialized after constructor // by attributes NS_LOG_FUNCTION (this); - NS_UNUSED (m_mean); } double diff --git a/src/core/model/random-variable-stream.h b/src/core/model/random-variable-stream.h index 4eea3129f..23d607e75 100644 --- a/src/core/model/random-variable-stream.h +++ b/src/core/model/random-variable-stream.h @@ -786,9 +786,6 @@ public: virtual uint32_t GetInteger (void); private: - /** The mean parameter for the Pareto distribution returned by this RNG stream. */ - double m_mean; - /** The scale parameter for the Pareto distribution returned by this RNG stream. */ double m_scale;