an intermediate commit to keep updates
This commit is contained in:
parent
1070ec8a32
commit
963d59e706
21 changed files with 649 additions and 556 deletions
21
src/doNormalMultiCenter.h
Normal file
21
src/doNormalMultiCenter.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef _doNormalMultiCenter_h
|
||||
#define _doNormalMultiCenter_h
|
||||
|
||||
#include "doModifierMass.h"
|
||||
#include "doNormalMulti.h"
|
||||
|
||||
template < typename EOT >
|
||||
class doNormalMultiCenter : public doModifierMass< doNormalMulti< EOT > >
|
||||
{
|
||||
public:
|
||||
typedef typename EOT::AtomType AtomType;
|
||||
|
||||
void operator() ( doNormalMulti< EOT >& distrib, EOT& mass )
|
||||
{
|
||||
ublas::vector< AtomType > mean( distrib.size() );
|
||||
std::copy( mass.begin(), mass.end(), mean.begin() );
|
||||
distrib.mean() = mean;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // !_doNormalMultiCenter_h
|
||||
Reference in a new issue