Accord.Statistics.Distributions.Univariate.FoldedNormalDistribution.HalfNormal C# (CSharp) Method

HalfNormal() public static method

Creates a new Half-normal distribution with the given standard deviation. The half-normal distribution is a special case of the FoldedNormalDistribution when location is zero.
public static HalfNormal ( double stdDev ) : FoldedNormalDistribution
stdDev double /// The standard deviation of the original normal distribution that should be folded.
return FoldedNormalDistribution
        public static FoldedNormalDistribution HalfNormal(double stdDev)
        {
            return new FoldedNormalDistribution(0, stdDev);
        }