using System;
using Ringtoets.Piping.Data.Properties;
namespace Ringtoets.Piping.Data.Probabilistics
{
///
/// Class representing a normal (or Gaussian) distribution.
///
public class NormalDistribution : IDistribution
{
private double standardDeviation;
///
/// Initializes a new instance of the class,
/// initialized as the standard normal distribution.
///
public NormalDistribution()
{
Mean = 0.0;
StandardDeviation = 1.0;
}
public double Mean { get; set; }
public double StandardDeviation
{
get
{
return standardDeviation;
}
set
{
if (value <= 0)
{
throw new ArgumentOutOfRangeException("value", Resources.StandardDeviation_Should_be_greater_than_zero);
}
standardDeviation = value;
}
}
}
}