[Biojava-l] Distributions and collections

Matthew Pocock mrp@sanger.ac.uk
Wed, 07 Mar 2001 11:59:08 +0000


Hi Mark,

I think that Distribution is closest in apperance to Map. Because it 
represents a probability distribution, it places certain restrictions on 
both the keys (symbols) and the values (doubles). Every Distribution has 
an associated Alphabet, which has size and iterator methods. An Alphabet 
most closely resembles a Set. What functionality from Collections would 
you see it usefull to access?

What would be the behavior of a Sequence comparator? When would it be 
used? Java makes it easy enough to define comparators as little inner 
class closure thingies, but if you can define how a sensible catch-all 
sequence comparator should work, and you have a use for it, check it in.

Matthew

Schreiber, Mark wrote:

> Hi,
> 
> Do people think it would be a good idea if Distributions implemented the
> Collection interface?? This could conceivabley give access to the
> functionality in the Collections class. Also would a Sequence comparator be
> a good idea or is this functionality present elsewhere in Biojava?
> 
> Just some rambling ideas, what do people think?
> 
> Mark
> _______________________________________________
> Biojava-l mailing list  -  Biojava-l@biojava.org
> http://biojava.org/mailman/listinfo/biojava-l