choose.trios: all unique combinations of 3 elements from n

Description Usage Arguments Value Author(s) Examples

Description

n choose 3 tells how many triplets can be made from n objects, choose.trios(n) gives the indices into a vector of objects of length n.

Usage

1

Arguments

n

a scalar, eg 10

Value

3 column matrix, with n choose 3 rows, and indices for each triplet in a row.

Author(s)

Mark Cowley, 28 Jav 2005

Examples

1

drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.