#include <fft.hpp> 
template<class T>
  
  for (int i=0; i<x.size(); i++) xc[i] = x[i];
  return xc;
}
template<class Type>
  y = y / sqrt((Type) y.size());
  return dnorm(y, Type(0), sd, 
true).sum();
 }
template<class Type>
Type objective_function<Type>::operator() ()
{
  
  return -log_dmvnorm_fft(x, C);
}
   
License: