In fact the (A|B|C|D|E) syntax automatically calculates the Sum.
In terms of bitwise logic
A | B
is like A or B and so gives an average of the distributions (aka Sum).
A * B
is like A and B and so gives the produce - like Combine.
Anyway - you can also put other commands within the notation so I think this should work:
(A|B|C|D|E|First()|Last())
as this translates to:
Sum()
{
Date("=A");
Date("=B");
Date("=C");
Date("=D");
Date("=E");
First();
Last();
};
Now supposing you want the Sum of all the elements between the boundaries - you can trick it into doing this by adding, for example First and Last statements which don't actually add any extra events:
Boundary() < (((A|B|C|D|E) < (G|H|I) < J)|Last()|First()) < Boundary();
This is the same as (and effectively gets translated into):
Sequence()
{
Boundary();
Sum()
{
Sequence()
{
Sum()
{
Date("=A");
Date("=B");
Date("=C");
Date("=D");
Date("=E");
};
Sum()
{
Date("=G");
Date("=H");
Date("=I");
};
Date("=J");
};
First();
Last();
};
Boundary();
};
Christopher
> --
> You received this message because you are subscribed to the Google Groups "OxCal" group.
> To post to this group, send an email to ox...@googlegroups.com.
> To unsubscribe from this group, send email to oxcal+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/oxcal?hl=en-GB.
>
The option header:
Options()
{
ConvergenceData=TRUE;
};
makes sure that the convergence data is stored in the output file. To actually show it in the plots you also have to turn on the Convergence option under [Format > Plot] in the output page. This is so you can produce plots with and without the convergence data without rerunning the analysis.
Christopher
To: "ox...@googlegroups.com" <ox...@googlegroups.com>
From: Christopher Ramsey
Sent by: ox...@googlegroups.com
Date: 03/03/2011 10:10AM
Subject: Re: convergence data