Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkDistModels.cpp
Go to the documentation of this file.
1 #include <mitkDistModels.h>
2 #include <cmath>
3 
5 {
6  return ((y + 0.5) / (2));
7 }
8 
9 double mitk::DistSimpleBinominal::Devariation(double mu, double y)
10 {
11  return 2 * (y * std::log(y) / mu + (1 - y) * std::log(1 - y) / (1 - mu));
12 }
13 
15 {
16  return std::sqrt(mu) * std::sqrt(1 - mu);
17 }
virtual double SqrtVariance(double mu)
virtual double Devariation(double mu, double y)
virtual double Init(double y)