Create Gaussian Distribution

Synopsis

Create a Gaussian distribution.

Results

Output:

0.396953

Code

C++

#include "itkGaussianDistribution.h"

int
main(int, char *[])
{
  itk::Statistics::GaussianDistribution::Pointer gaussian = itk::Statistics::GaussianDistribution::New();
  gaussian->SetMean(2.0);
  gaussian->SetVariance(1.0);
  std::cout << gaussian->EvaluatePDF(2.1) << std::endl;
  return EXIT_SUCCESS;
}

Classes demonstrated

Warning

doxygenclass: Cannot find class “itk::GaussianDistribution” in doxygen xml output for project “ITK” from directory: /home/kitware/Dashboards/Tests/ITKExamples-doc-build/ITKEx-build/ITKDoxygenXML

See itk::GaussianDistribution for additional documentation.