RE: [Fwd: [BUGS] Port ClassicBUGS to Java byte code using Garden Point Compiler.]

From: Campbell, Robert D (UK Edinburgh) <"Campbell,>
Date: Wed, 27 Oct 2004 14:14:01 +0100

----boundary-LibPST-iamunique-1504025059_-_-
Content-type: text/plain



>> >> 2. There are some potentially curly issues such as

>> >> WinBUGS providing
>> >> its own random number generator, because there does not
>> >> seem to be one
>> >> in the Black Box framework. Other platforms like Java or
>> >> .NET provide
>> >> random number generators. Should we use functions from other
>> >> platforms, or stick to BUGS ones?
>>

>> 1 - I don't know anything about the random number generator in Bugs.
>>

>> 2 - Very many 'Platform supplied' random number generators

>> are rubbish.
>>

>> 3 - BlackBox does provide one (as an example) in ObxRandom.

>> It is due to Lewis, Goodman,
>> & Miller, and is widely cited. It has a small (31 bit) state
>> vector which, in my opinion, makes it marginal for large

>> simulations, and inadequate
>> for very large simulations. It is better than many, and

>> among the best of its type.
>> For performance details refer to Donald Knuth, The Art of

>> Computer Programming,
>> Volume 2, Table 1, page 106, line 19. He describes it as

>> 'adequate but less
>> outstanding', and '... have known defects'.

I have now had a look at the Bugs random number generator.

1 - It is the ubiquitous 'Miller' generator mentioned above
(and used as an example in 'Programming in Oberon' by N Wirth esq.

2 - Since these (Math) modules are pure Component Pascal surely
they are already among the easiest to port to Gardens Point?

Robert




********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


----boundary-LibPST-iamunique-1504025059_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFxwYXINClxwYXINCj4+ICA+PiAgICAgMi4gIFRo
ZXJlIGFyZSBzb21lIHBvdGVudGlhbGx5IGN1cmx5IGlzc3VlcyBzdWNoIGFzXHBhcg0KPj4gID4+
ICBXaW5CVUdTIHByb3ZpZGluZ1xwYXINCj4+ICA+PiAgaXRzIG93biByYW5kb20gbnVtYmVyIGdl
bmVyYXRvciwgYmVjYXVzZSB0aGVyZSBkb2VzIG5vdFxwYXINCj4+ICA+PiAgc2VlbSB0byBiZSBv
bmVccGFyDQo+PiAgPj4gIGluIHRoZSBCbGFjayBCb3ggZnJhbWV3b3JrLiAgT3RoZXIgcGxhdGZv
cm1zIGxpa2UgSmF2YSBvclxwYXINCj4+ICA+PiAgLk5FVCBwcm92aWRlXHBhcg0KPj4gID4+ICBy
YW5kb20gbnVtYmVyIGdlbmVyYXRvcnMuICBTaG91bGQgd2UgdXNlIGZ1bmN0aW9ucyBmcm9tIG90
aGVyXHBhcg0KPj4gID4+ICBwbGF0Zm9ybXMsIG9yIHN0aWNrIHRvIEJVR1Mgb25lcz9ccGFyDQo+
PiBccGFyDQpccGFyDQo+PiAgMSAtIEkg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Bvc3RpbmcgaW1tZWRpYXRlbHksIHdpdGhv
dXQgY3JlYXRpbmcgYW55IG92ZXJoZWFkLlxwYXINClxwYXINCmIpIElmLCBmb3Igc29tZSByZWFz
b24sIHlvdSBjYW5ub3QgcG9zdCBmcm9tIHRoZSBhZGRyZXNzLCBieSB3aGljaCB5b3UgYXJlIHN1
YnNjcmliZWQsIHlvdXIgbWVzc2FnZSB3aWxsIGJlIG1vZGVyYXRlZCB0byBhdm9pZCBzcGFtLiBQ
bGVhc2UgdW5kZXJzdGFuZCB0aGF0IG1vZGVyYXRpb24gd2lsbCBvZnRlbiBjYXVzZSBzb21lIGRl
bGF5LCBpbiBwYXJ0aWN1bGFyIG92ZXIgd2Vla2VuZHMgb3IgaG9seWRheX19AD4+ICA+Pg=


----boundary-LibPST-iamunique-1504025059_-_---
Received on Wed Oct 27 2004 - 15:14:01 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:32 UTC