Hi Christian,

I like the idea of adding a prefix to statistics to make them
easier to find/identify as statistics.  
But there might be a problem with putting them
in the pi.statistics.name() level because few other
combinatorial objects are organized this way.  If you do
something different in this one case then the code may
be difficult to find for an end user.

I don't have good answers on this, but one suggestion
as an alternative might be:
pi.statistic_name()

P.S.
Add http://arxiv.org/pdf/math.CO/0310301.pdf to the list of
permutation statistics.

On Monday, 4 June 2012 08:14:47 UTC-4, Christian Stump wrote:
>
> Hi, 
>
> I am currently implementing some (simple to implement and not yet very 
> well studied) statistics for permutations. The main problem I have is 
> that they don't come with (or even have any) descriptive names, so I 
> wonder what to do, as an example, see 
> http://www-irma.u-strasbg.fr/~guoniu/papers/p17maf.pdf Section 3 "A 
> new mahonian statistic 'maf' ". (Yes, I do that for the findstat 
> project, and yes, I hope that this will lead to new ways to find out 
> things about not well-studied permutation statistics). 
>
> I think of using them like 
>
> sage: pi = Permutation([2,3,1]) 
> sage: pi.mahonian_statistics.maf_index() 
> 2 
>
> but also 
>
> sage: pi.statistics.maf_index() 
>
> So the same method could appear in different places (like major_index 
> would appear in both "collections" above, but also as a plain method 
> for permutations. 
>
> Q1. Do you think this would help organizing the methods for permutations? 
> Q2. Does anyone know how to do such an implementation? 
> Q3. Any other / better ideas? 
>
> Best, Christian 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sage-combinat-devel/-/2fVpiufhIngJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to