| Summary | Included libraries | Package variables | Synopsis | Description | General documentation | Methods |
| Summary | Top |
| Clair::RandomDistribution::Gaussian |
| Package variables | Top |
| No package variables defined. |
| Included modules | Top |
| Carp |
| Clair::RandomDistribution::RandomDistributionBase |
| constant two_pi_sqrt_inverse => 1 / sqrt (8 * atan2 (1, 1)) |
| Inherit | Top |
| Clair::RandomDistribution::RandomDistributionBase |
| Synopsis | Top |
| my $z = Gaussian->new (mean => 1.1, variance => 12, dist_size => 20); |
| Description | Top |
| Concrete class representing a Gaussian distributions. |
| Methods | Top |
| dist_function | No description | Code |
| new | No description | Code |
| dist_function | description | prev | next | Top |
sub dist_function
{ my $self = shift;
return two_pi_sqrt_inverse *
exp ( -(($_[0] - $self->{mean}) ** 2) / (2 * $self->{variance})) /
sqrt ($self->{variance});} |
| new | description | prev | next | Top |
sub new
{my $class = shift; my %params = @_; # We require a mean and a variance} |
| Takes a random variable | Top |