Last chance! 50% off unlimited learning
Sale ends in
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.
attraction(permutation, decay)# S3 method for shallot.attraction
print(x, ...)
# S3 method for shallot.attraction
as.matrix(x, ...)
An object of class shallot.permutation
encoding
the permutation of the items.
An object of class shallot.decay
detailing the
transformation from distances to attractions.
An object of class shallot.attraction
.
Currently ignored.
An object of class shallot.attraction
.
ddcrp
, decay
,
ewens.attraction
, ewens.pitman.attraction
,
permutation
# NOT RUN {
permutation <- permutation(n.items=50,fixed=FALSE)
decay <- decay.exponential(temperature(1.0),dist(scale(USArrests)))
attraction(permutation, decay)
# }
Run the code above in your browser using DataLab