ANIMA  4.0
animaB1GMMDistributionIntegrand.cxx
Go to the documentation of this file.
2 
3 namespace anima
4 {
5 
7 {
8  if (m_EPGVectors.find(t) == m_EPGVectors.end())
9  m_EPGVectors.insert(std::make_pair(t,m_EPGSimulator.GetValue(m_T1Value, t, m_FlipAngle, 1.0)));
10 
11  double gaussianExponent = (t - m_GaussianMean) * (t - m_GaussianMean) / (2.0 * m_GaussianVariance);
12 
13  return m_EPGVectors[t][m_EchoNumber] * std::exp(- gaussianExponent) / (std::sqrt(2.0 * M_PI * m_GaussianVariance));
14 }
15 
16 } // end namespace anima
RealVectorType & GetValue(double t1Value, double t2Value, double flipAngle, double m0Value)
Get EPG values at given point.