Index: Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/DesignVariable.cs =================================================================== diff -u -rb3b6c13cf736c134476b3db34281332d01ca86b1 -re38c47f89bf1adc85d32ab38341b7d953b218ad2 --- Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/DesignVariable.cs (.../DesignVariable.cs) (revision b3b6c13cf736c134476b3db34281332d01ca86b1) +++ Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/DesignVariable.cs (.../DesignVariable.cs) (revision e38c47f89bf1adc85d32ab38341b7d953b218ad2) @@ -25,16 +25,21 @@ namespace Ringtoets.Common.Data.Probabilistics { - public abstract class DesignVariable where TDistribution : IDistribution + /// + /// Abstract base class for defining a design variable for a distribution. + /// + /// The type of the underlying distribution from which a design value is + /// derived. + public abstract class DesignVariable where T : IDistribution { - private TDistribution distribution; + private T distribution; /// /// Initializes a new instance of the class. /// - /// Thrown when is + /// Thrown when is /// null. - protected DesignVariable(TDistribution distribution) + protected DesignVariable(T distribution) { Distribution = distribution; } @@ -44,7 +49,7 @@ /// /// Thrown when is /// null. - public TDistribution Distribution + public T Distribution { get { Index: Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/DeterministicDesignVariable.cs =================================================================== diff -u -rb3b6c13cf736c134476b3db34281332d01ca86b1 -re38c47f89bf1adc85d32ab38341b7d953b218ad2 --- Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/DeterministicDesignVariable.cs (.../DeterministicDesignVariable.cs) (revision b3b6c13cf736c134476b3db34281332d01ca86b1) +++ Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/DeterministicDesignVariable.cs (.../DeterministicDesignVariable.cs) (revision e38c47f89bf1adc85d32ab38341b7d953b218ad2) @@ -19,13 +19,15 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using Core.Common.Base.Data; namespace Ringtoets.Common.Data.Probabilistics { /// - /// This class defines a design variable for a distribution. + /// This class defines a design variable for a deterministic distribution. /// + /// The type of the distribution. public class DeterministicDesignVariable : DesignVariable where T : IDistribution { private readonly double deterministicValue; @@ -35,6 +37,8 @@ /// /// A distribution. /// The value to be returned for the distribution. + /// Thrown when is + /// null. public DeterministicDesignVariable(T distribution, double deterministicValue = 0.0) : base(distribution) { this.deterministicValue = deterministicValue; Index: Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/LogNormalDistributionDesignVariable.cs =================================================================== diff -u -rb3b6c13cf736c134476b3db34281332d01ca86b1 -re38c47f89bf1adc85d32ab38341b7d953b218ad2 --- Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/LogNormalDistributionDesignVariable.cs (.../LogNormalDistributionDesignVariable.cs) (revision b3b6c13cf736c134476b3db34281332d01ca86b1) +++ Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/LogNormalDistributionDesignVariable.cs (.../LogNormalDistributionDesignVariable.cs) (revision e38c47f89bf1adc85d32ab38341b7d953b218ad2) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using Core.Common.Base.Data; namespace Ringtoets.Common.Data.Probabilistics @@ -32,6 +33,8 @@ /// Initializes a new instance of the class. /// /// A log-normal distribution. + /// Thrown when is + /// null. public LogNormalDistributionDesignVariable(LogNormalDistribution distribution) : base(distribution) {} public override RoundedDouble GetDesignValue() Index: Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/NormalDistributionDesignVariable.cs =================================================================== diff -u -rb3b6c13cf736c134476b3db34281332d01ca86b1 -re38c47f89bf1adc85d32ab38341b7d953b218ad2 --- Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/NormalDistributionDesignVariable.cs (.../NormalDistributionDesignVariable.cs) (revision b3b6c13cf736c134476b3db34281332d01ca86b1) +++ Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/NormalDistributionDesignVariable.cs (.../NormalDistributionDesignVariable.cs) (revision e38c47f89bf1adc85d32ab38341b7d953b218ad2) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using Core.Common.Base.Data; namespace Ringtoets.Common.Data.Probabilistics @@ -32,6 +33,8 @@ /// Initializes a new instance of the class. /// /// A normal distribution. + /// Thrown when is + /// null. public NormalDistributionDesignVariable(NormalDistribution distribution) : base(distribution) {} public override RoundedDouble GetDesignValue() Index: Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/PercentileBasedDesignVariable.cs =================================================================== diff -u -rb3b6c13cf736c134476b3db34281332d01ca86b1 -re38c47f89bf1adc85d32ab38341b7d953b218ad2 --- Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/PercentileBasedDesignVariable.cs (.../PercentileBasedDesignVariable.cs) (revision b3b6c13cf736c134476b3db34281332d01ca86b1) +++ Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/PercentileBasedDesignVariable.cs (.../PercentileBasedDesignVariable.cs) (revision e38c47f89bf1adc85d32ab38341b7d953b218ad2) @@ -31,26 +31,26 @@ /// This class is a representation of a variable derived from a probabilistic distribution, /// based on a percentile. /// - /// The type of the underlying distribution from which a value is + /// The type of the underlying distribution from which a value is /// derived. - public abstract class PercentileBasedDesignVariable : DesignVariable where TDistribution : IDistribution + public abstract class PercentileBasedDesignVariable : DesignVariable where T : IDistribution { private static readonly Range percentileValidityRange = new Range(0, 1); private double percentile; /// - /// Initializes a new instance of the class with + /// Initializes a new instance of the class with /// equal to 0.5. /// - /// Thrown when is + /// Thrown when is /// null. - protected PercentileBasedDesignVariable(TDistribution distribution) : base(distribution) + protected PercentileBasedDesignVariable(T distribution) : base(distribution) { percentile = 0.5; } /// - /// Gets or sets the percentile used to derive a deterministic value based on . + /// Gets or sets the percentile used to derive a design value based on . /// /// Thrown when /// is not in range [0,1]. Index: Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/VariationCoefficientDesignVariable.cs =================================================================== diff -u -rb3b6c13cf736c134476b3db34281332d01ca86b1 -re38c47f89bf1adc85d32ab38341b7d953b218ad2 --- Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/VariationCoefficientDesignVariable.cs (.../VariationCoefficientDesignVariable.cs) (revision b3b6c13cf736c134476b3db34281332d01ca86b1) +++ Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/VariationCoefficientDesignVariable.cs (.../VariationCoefficientDesignVariable.cs) (revision e38c47f89bf1adc85d32ab38341b7d953b218ad2) @@ -25,16 +25,21 @@ namespace Ringtoets.Common.Data.Probabilistics { - public abstract class VariationCoefficientDesignVariable where TDistribution : IVariationCoefficientDistribution + /// + /// Abstract base class for defining a design variable for a variation coefficient based distribution. + /// + /// The type of the underlying distribution from which a design value is + /// derived. + public abstract class VariationCoefficientDesignVariable where T : IVariationCoefficientDistribution { - private TDistribution distribution; + private T distribution; /// /// Initializes a new instance of the class. /// - /// Thrown when is + /// Thrown when is /// null. - protected VariationCoefficientDesignVariable(TDistribution distribution) + protected VariationCoefficientDesignVariable(T distribution) { Distribution = distribution; } @@ -44,7 +49,7 @@ /// /// Thrown when is /// null. - public TDistribution Distribution + public T Distribution { get { Index: Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/VariationCoefficientLogNormalDistributionDesignVariable.cs =================================================================== diff -u -rb3b6c13cf736c134476b3db34281332d01ca86b1 -re38c47f89bf1adc85d32ab38341b7d953b218ad2 --- Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/VariationCoefficientLogNormalDistributionDesignVariable.cs (.../VariationCoefficientLogNormalDistributionDesignVariable.cs) (revision b3b6c13cf736c134476b3db34281332d01ca86b1) +++ Ringtoets/Common/src/Ringtoets.Common.Data/Probabilistics/VariationCoefficientLogNormalDistributionDesignVariable.cs (.../VariationCoefficientLogNormalDistributionDesignVariable.cs) (revision e38c47f89bf1adc85d32ab38341b7d953b218ad2) @@ -37,16 +37,19 @@ private double percentile; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class + /// with equal to 0.5. /// /// A log-normal distribution. + /// Thrown when is + /// null. public VariationCoefficientLogNormalDistributionDesignVariable(VariationCoefficientLogNormalDistribution distribution) : base(distribution) { percentile = 0.5; } /// - /// Gets or sets the percentile used to derive a deterministic value based on . + /// Gets or sets the percentile used to derive a design value based on . /// /// Thrown when /// is not in range [0,1].