This function creates an attraction from a permutation and a decay in preparation for use in the ewens.attraction, ewens.pitman.attraction, and ddcrp functions.
For details on each of these arguments, please see the links below.
Usage
attraction(permutation, decay)
# S3 method for shallot.attraction
print(x, ...)
# S3 method for shallot.attraction
as.matrix(x, ...)
Arguments
permutation
An object of class shallot.permutation encoding the permutation of the items.
decay
An object of class shallot.decay detailing the transformation from distances to attractions.