Learn R Programming

RMallow (version 1.1)

SeqDistribution: Calculates distances in N! space.

Description

Calculates Kendall's distances of each sequence in N! space. This is VERY Inefficient for N >= 8. See DistanceDistribution for an astronomical improvement (possibly on the order of 10^10).

Usage

SeqDistribution(N)

Arguments

N

Length of the ranking. Preferrably less than 9.

Value

Vector of Kendall distances from 1:N to each sequence in N! space.