Learn R Programming

PerMallows (version 1.8)

count.perms.fixed.points: Count permutations with a given number of fixed points

Description

Given the number of items in the permutations and the number of fixed points f, how many permutations are there with f fixed points?

Usage

count.perms.fixed.points(perm.length, fixed)

Arguments

perm.length
number of items in the permutations
fixed
the number of fixed points

Value

  • The number of permutations in which the number of fixed points is equal to the specified argument

Examples

Run this code
count.perms.fixed.points(4,1)

Run the code above in your browser using DataLab