Description Usage Arguments Value Author(s) References See Also Examples
These functions specify the Ewens, Ewens-Pitman, Ewens attraction,
Ewens-Pitman attraction, and ddCRP distributions which would then be used in
the sample.partitions function.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ewens(mass, n.items, names = paste0("c", 1:n.items))
## S3 method for class 'shallot.distribution.ewens'
print(x, ...)
ewens.pitman(mass, discount, n.items, names = paste0("c", 1:n.items))
## S3 method for class 'shallot.distribution.ewensPitman'
print(x, ...)
ewens.attraction(mass, attraction)
## S3 method for class 'shallot.distribution.ewensAttraction'
print(x, ...)
ewens.pitman.attraction(mass, discount, attraction)
## S3 method for class 'shallot.distribution.ewensPitmanAttraction'
print(x, ...)
ddcrp(mass, attraction)
## S3 method for class 'shallot.distribution.ddcrp'
print(x, ...)
|
mass |
An object of class |
n.items |
An integer containing the number of items to partition. |
names |
A character vector containing the names of the items. The default names are of the form “c1”, “c2”, etc. |
x |
An object of class |
... |
Currently ignored. |
discount |
An object of class |
attraction |
An object of class |
An object of class shallot.distribution
.
David B. Dahl dahl@stat.byu.edu
mass
, discount
,
attraction
, sample.partitions
1 2 3 4 5 6 7 | pd1 <- ewens(mass(1),50)
decay <- decay.exponential(temperature(1.0),dist(scale(USArrests)))
attraction <- attraction(permutation(n.items=50,fixed=FALSE), decay)
pd2 <- ewens.pitman.attraction(mass(1), discount(0.05), attraction)
pd3 <- ddcrp(mass(1), attraction)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.