Skip to content
tgvaughan edited this page Jan 28, 2013 · 2 revisions

A <moment> element is used to specify that a product of population sizes at a particular time should be averaged across the trajectories in the EnsembleSummary calculation. It takes the following form:

    <moment spec='Moment'
            momentName='STRING'
            factorial='BOOLEAN'>
      <!-- one or more <factor> elements with spec='Population' -->
    </moment>

The momentName attribute specifies a unique name for the moment results. This name should start with a letter and contain only letters and numbers (no spaces).

The factorial attribute specifies whether factorial products should be used. (I.e. N*(N-1) rather than N*N.)

The populations whose sizes are to be multiplied together are specified using the <factor> elements, which have precisely the same internal form as the population elements.