Learn R Programming

shallot (version 0.4.1)

pairwise.probabilities: Pairwise Probabilities

Description

These functions relate to the pairwise probabilities that two items are clustered together, i.e., belong to the same subset in a partition.

Usage

pairwise.probabilities(x, parallel = TRUE)
# S3 method for shallot.pairwiseProbability
print(x, ...)
# S3 method for shallot.pairwiseProbability
as.matrix(x, ...)

Arguments

x

An object of class shallot.samples.raw when supplied to pairwise.probabilities or an object of class shallot.pairwiseProbability when supplied to print and as.matrix.

parallel

Should all of the CPU cores should be used? Defaults to TRUE.

...

Currently ignored.

Value

The pairwise.probabilities function returns an object of class shallot.pairwiseProbability.

The as.matrix function returns a square matrix.

Details

pairwise.probabilities calculates the pairwise probabilities that two items are clustered together, i.e., belong to the same subset in a partition.

as.matrix converts the results of pairwise.probabilities to an R matrix.

See Also

sample.partitions, process.samples, estimate.partition

Examples

Run this code
# NOT RUN {
example(shallot)
# }

Run the code above in your browser using DataLab