Skip to content

PeakSet from Permutation ​

The interior positions that rise then fall.

Permutation → Finset

Its size is the Peaks statistic, exactly as DescentSet's is Descents.

Called as CombinatorialMap(x, "PeakSet"). The head's page has its examples.