ENSEMBLE
This is part of the function module

Calculates the replica averaging of a collective variable over multiple replicas.

Each collective variable is averaged separately and stored in a component labelled label.cvlabel.

Options
NUMERICAL_DERIVATIVES ( default=off ) calculate the derivatives for these quantities numerically
REWEIGHT ( default=off ) simple REWEIGHT using the latest ARG as energy
CENTRAL

( default=off ) calculate a central moment instead of a standard moment

ARG the input for this action is the scalar output from one or more other actions. The particular scalars that you will use are referenced using the label of the action. If the label appears on its own then it is assumed that the Action calculates a single scalar value. The value of this scalar is thus used as the input to this new action. If * or *.* appears the scalars calculated by all the proceding actions in the input file are taken. Some actions have multi-component outputs and each component of the output has a specific label. For example a DISTANCE action labelled dist may have three componets x, y and z. To take just the x component you should use dist.x, if you wish to take all three components then use dist.*.More information on the referencing of Actions can be found in the section of the manual on the PLUMED Getting Started. Scalar values can also be referenced using POSIX regular expressions as detailed in the section on Regular Expressions. To use this feature you you must compile PLUMED with the appropriate flag. You can use multiple instances of this keyword i.e. ARG1, ARG2, ARG3...
TEMP the system temperature - this is only needed if you are reweighting
MOMENT the moment you want to calculate in alternative to the mean or the variance
POWER

the power of the mean (and moment)

Examples

The following input tells plumed to calculate the distance between atoms 3 and 5 and the average it over the available replicas.

dist: DISTANCE ATOMS=3,5
ens: ENSEMBLE ARG=dist
PRINT ARG=dist,ens.dist