Description Usage Arguments Value Examples
Calculate the similarity matrix of Bossa scores which are obtained by boosting on single attribute.
1 2 |
data |
A data.frame or matrix( |
is.pca |
A logical variable indicating if the Bossa scores should transformed to principle components and then calculate the similarity matrix. It is recommended when processing the ultra-dimension data. |
pca.sum.prop |
A numeric indicating how many components should be reserved
in order to make this proportion of variance. The default is |
fix.pca.comp |
A numeric variable indicating whether choosing the fixed number of components or the fixed proportion of variance and the default is to choose fixed proportion. |
n.comp |
The number of components of PCA. The default is |
alpha |
A power scaling for Bossa scores, representing the weight of variable sigma value. |
pro.show |
A logical indicator whether show the details of the process. |
An object including Bossa scores, Bossa dissimilarity and Bossa similarity(for
OverlapClust
.
1 2 3 4 5 6 7 8 9 10 11 12 13 | {
## generate sparse data from the toy model of CIDR
sparse.data <- data.frame(g.1 = c(0, 5, 0, 6, 8, 6, 7, 7), g.2 = c(5, 0, 0, 0, 5, 7, 5, 7))
## with low-dimensional data, pca is uncessary
bossa.change <- BossaSimi(sparse.data, is.pca = FALSE)
## data after normalization
data.after <- bossa.change$U.score.non.pca
## similarity matrix of normalized data
data.simi <- bossa.change$bossa.simi
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.