|Perl: the Markov chain saw|
modeling overlapping generationsby punkish (Priest)
|on Nov 26, 2011 at 17:40 UTC||Need Help??|
punkish has asked for the
wisdom of the Perl Monks concerning the following question:
Caveat lector, my subject line may be inappropriate for the question below, but it seems to come the closest to my understanding (http://en.wikipedia.org/wiki/Overlapping_generations_model).
Update: The above link to modeling financial instruments may be confusing, but the following sentence from the above link resonated with me, "model in which agents live a finite length of time and live long enough to endure into at least one period of the next generation's lives."
I am looking for a way to model overlapping generations where 'a' lies within 'b' which starts in 'c' and ends in 'd' whereby 'c' lies within 'e' and so on. Here is my attempt to draw it in ascii
Update: Here is a real example: geologic time is made up of opinions. "The opinion is that the given level in a section at a locality corresponds to zone G. When this is compared to other opinions, it will come out that zone G is in the regional Tulean stage. When that is compared to other opinions, it will come out that the Tulean straddles the Tremadoc and Arenig. But the Arenig spans the Floian through lower Darriwilian. So, without the proper precautions, one could end up thinking the level in the section is somewhere between the Tremadoc and Darriwilian, when in fact it is much better constrained than that."
It could be done in SQL, and that is how we are tackling it right now, but it is messy, and the coding is always complicated. I am thinking of alternatives, perhaps as graphs (RDF triples), or some other way.
I am sure knowledgable monks will have several ideas. I look forward to your thoughts.
Update 2: Set::IntervalTree looks very promising.
when small people start casting long shadows, it is time to go to bed