diff --git a/edo/src/edoNormalAdaptive.h b/edo/src/edoNormalAdaptive.h index 3d409140f..edde019b1 100644 --- a/edo/src/edoNormalAdaptive.h +++ b/edo/src/edoNormalAdaptive.h @@ -130,7 +130,22 @@ public: Vector path_covar() const {return _p_c;} Vector path_sigma() const {return _p_s;} + //! Set the mean with an Eigen3 vector void mean( Vector m ) { _mean = m; assert( m.size() == _dim ); } + + /** Set the mean with an EOT instead of an Eigen3 mean + * + * Explicit copy of the EOT in a vector. + */ + void mean( EOT m ) + { + Vector center( m.size() ); + for( unsigned int i=0, end=m.size(); i