WLJS LogoWLJS Notebook

HalfNormalDistribution

HalfNormalDistribution[θ] represents a half-normal distribution with scale inversely proportional to parameter θ.

Examples

Create a half-normal distribution:

dist = HalfNormalDistribution[1]

Plot the probability density:

Plot[PDF[HalfNormalDistribution[1], x], {x, 0, 5}]

Generate random samples:

RandomVariate[HalfNormalDistribution[2], 10]

Please visit the official Wolfram Language Reference for more details.

On this page