Hello everyone.

Christian Stump, Chris Berg and I have been thinking about statistics
on combinatorial objects in Sage. There are several already
implemented in Sage, and we think that it would be very useful to have
a means to identify. As a simple example, one might want to know all
the statistics that are implemented for permutations (or tableaux, or
words, or k-ratonslaveurs, ...) in order to output a table of values
of these statistics.

So the question is: how do we do this? We have been toying with the
idea of implementing a decorator (like cached_method) for methods that
are statistics. It would take as an argument the codomain of the
statistic. Knowing the codomain would make it possible to ask for all
integer-valued statistics, say. A typical example would be
permutations and integer statistics:

    @combinatorial_statistic(codomain=Integers)
    def major_index(self):
        return ...

Comments? Suggestions? Alternative ideas for implementations?

Take care,
Franco

--

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to