massive documentation update
This commit is contained in:
parent
b4da9edf40
commit
7fed1ebf51
33 changed files with 399 additions and 181 deletions
|
|
@ -31,8 +31,10 @@ Authors:
|
|||
#include "edoModifierMass.h"
|
||||
#include "edoUniform.h"
|
||||
|
||||
//! edoUniformCenter< EOT >
|
||||
|
||||
/** Modify an edoUniform distribution by centering its bounds around a given EOT.
|
||||
*
|
||||
* @ingroup Modifiers
|
||||
*/
|
||||
template < typename EOT >
|
||||
class edoUniformCenter : public edoModifierMass< edoUniform< EOT > >
|
||||
{
|
||||
|
|
@ -41,16 +43,16 @@ public:
|
|||
|
||||
void operator() ( edoUniform< EOT >& distrib, EOT& mass )
|
||||
{
|
||||
for (unsigned int i = 0, n = mass.size(); i < n; ++i)
|
||||
{
|
||||
AtomType& min = distrib.min()[i];
|
||||
AtomType& max = distrib.max()[i];
|
||||
for (unsigned int i = 0, n = mass.size(); i < n; ++i)
|
||||
{
|
||||
AtomType& min = distrib.min()[i];
|
||||
AtomType& max = distrib.max()[i];
|
||||
|
||||
AtomType range = (max - min) / 2;
|
||||
AtomType range = (max - min) / 2;
|
||||
|
||||
min = mass[i] - range;
|
||||
max = mass[i] + range;
|
||||
}
|
||||
min = mass[i] - range;
|
||||
max = mass[i] + range;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue