[Image-SIG] that's enough
chris.mit7 at gmail.com
Tue Jul 20 03:33:18 CEST 2010
Are you trying to model fluorophores? If you want to model a Poisson
process you don't need any special packages, just take the negative
log of a uniformly distributed random variable from 0-1.
Mathematically, this would be saying: y = r*e(-rt), where y is a
uniform random variable, then take the integral and then the inverse
(how you turn a uniform distribution into any distribution you want).
On Mon, Jul 19, 2010 at 7:18 PM, Jack Uretsky <jlu at hep.anl.gov> wrote:
> Hi Chris-
> In answer to your question,
> this is a simulation. The "events" are program generated; I'm trying to
> approximate a Poisson process, so the times between event pairs are
> exponentially distributed.
> "Trust me. I have a lot of experience at this."
> General Custer's unremembered message to his men,
> just before leading them into the Little Big Horn Valley
> On Mon, 19 Jul 2010, Christopher Barker wrote:
>> Jack Uretsky wrote:
>>> I have a sequence of events ocurring in real time. To each event I
>>> display a corresponing .jpg picture. The number of events may be in the
>>> hundreds. There are eight pictures.
>> where are these "events" coming from?
>> In any case, one route is to have a main wxPython application. In its
>> OnInit method, start up another thread that runs the code that listens for
>> In that code, when you get an event, call:
>> In some_func_to_update_image()
>> You, well, update the image in your wxPython code. I think I already
>> posted an example of how to do that.
>> You put the listening code in a separate thread, so it won't block the
>> wxPython MainLoop -- if all you are doing is displaying these images, that
>> may not be necessary, though you'll have to do something so that the user
>> can at least interact enough with the GUI enough to quit it.
>> wx.CallAfter() is a way to deal with the fact that wxPython is not thread
>> safe, so you can't make GUI calls directly from another thread.
>> Christopher Barker, Ph.D.
>> Emergency Response Division
>> NOAA/NOS/OR&R (206) 526-6959 voice
>> 7600 Sand Point Way NE (206) 526-6329 fax
>> Seattle, WA 98115 (206) 526-6317 main reception
>> Chris.Barker at noaa.gov
>> Image-SIG maillist - Image-SIG at python.org
> Image-SIG maillist - Image-SIG at python.org
More information about the Image-SIG