Maths.dnormLog( x, mixingDistribution.getPointValues(), 1 );
d.minusEquals( d.max() );
d = d.map("java.lang.Math", "exp");
d.timesEquals( mixingDistribution.getFunctionValues() );
return mixingDistribution.getPointValues().innerProduct( d ) / d.sum();
}
/**
* Returns the empirical Bayes estimate of a vector.
*