inversions: Count order inversions

Description Usage

View source: R/bic.R

Description

This function uses an insertion sort to count the number of transpositions necessary to sort the list xs.

Usage

1
inversions(xs, decreasing = FALSE)

tfglynn/sdsu-research-code documentation built on Jan. 31, 2022, 12:04 a.m.