+//================================================================================
+/*!
+ *
+ */
+//================================================================================
+
+void StdMeshers_NumberOfSegments::SetBeta(double beta)
+{
+ if (_distrType != DT_BetaLaw)
+ throw SALOME_Exception(LOCALIZED("not a Beta Law distribution"));
+
+ const double diff = fabs(fabs(_beta) - fabs(beta));
+ if (diff <= PRECISION)
+ {
+ // Check for a special case where we have values with
+ // equal base but opposite signs like -1.01 and 1.01
+ if (std::signbit(_beta) == std::signbit(beta))
+ return;
+ }
+
+ _beta = beta;
+ NotifySubMeshesHypothesisModification();
+}
+
+//================================================================================
+/*!
+ *
+ */
+//================================================================================
+
+double StdMeshers_NumberOfSegments::GetBeta() const
+{
+ if (_distrType != DT_BetaLaw)
+ throw SALOME_Exception(LOCALIZED("not a Beta Law distribution"));
+ return _beta;
+}
+