Dear all,
following the message I posted a few days ago I am writing to let you know
of one way I figured out the problem can be tackled. I am not sure whether
this makes complete sense but, at least, it seems to work.
1) GetCoefficient() is used to supply Ox with the statistic you want to
calculate in each replication. The name Ox gives this statistic is
coefs.
2) Over the replications Ox implicitly calculates the mean of this
statistic, which it calls m_mCoefMean.
3) The question then is how to retrieve this quantity.
4) To that end I defined a new member function of Simulation, calling it
ExportMean(). All this does is return m_mCoefMean which is by default a
global variable.
5) Finally, I call this function from within main() and can then modify it
as needed.
I hope this is comprehensible and of use to someone. Any questions or
comments are welcome.
Many thanks,
Michael
________________________________
Michael Massmann
Lincoln College
Oxford OX1 3DR
England
tel: +44 (0)1865 271085 (office)
+44 (0)1865 246308 (home)
fax: +44 (0)1865 271094
---------- Forwarded message ----------
Date: Fri, 15 Oct 1999 14:45:52 +0100 (BST)
From: Michael Massmann <[log in to unmask]>
To: [log in to unmask]
Subject: simula class
Dear all,
I am using the simula class for a MC experiment and am wondering about the
following:
In each replication i I am calculating a statistic X_i which when renamed
m_mCoef will result in the simulation automatically outputting the mean of
this statistic.
I now need to take this mean and transform it further. To that end, I
think, I would have to assign a variable name to it or indeed use the
implicit name given to it by the class. My understanding of the class is,
however, somewhat limited and I am not sure how to achieve this.
Is anyone of you familiar with the simula class and could indicate to me
how to go about this please? Thanks very much.
Regards,
Michael
________________________________
Michael Massmann
Lincoln College
Oxford OX1 3DR
England
tel: +44 (0)1865 271085 (office)
+44 (0)1865 246308 (home)
fax: +44 (0)1865 271094
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|