discr.stat {mgc} | R Documentation |
Discriminability Statistic
Description
A function for computing the discriminability from a distance matrix and a set of associated labels.
Usage
discr.stat(
X,
Y,
is.dist = FALSE,
dist.xfm = mgc.distance,
dist.params = list(method = "euclidean"),
dist.return = NULL,
remove.isolates = TRUE
)
Arguments
X |
is interpreted as:
|
Y |
|
is.dist |
a boolean indicating whether your |
dist.xfm |
if |
dist.params |
a list of trailing arguments to pass to the distance function specified in |
dist.return |
the return argument for the specified
|
remove.isolates |
remove isolated samples from the dataset. Isolated samples are samples with only
one instance of their class appearing in the |
Value
A list containing the following:
discr |
the discriminability statistic. |
rdf |
the rdfs for each sample. |
Details
For more details see the help vignette:
vignette("discriminability", package = "mgc")
Author(s)
Eric Bridgeford
References
Eric W. Bridgeford, et al. "Optimal Decisions for Reference Pipelines and Datasets: Applications in Connectomics." Bioarxiv (2019).
Examples
sim <- discr.sims.linear(100, 10, K=2)
X <- sim$X; Y <- sim$Y
discr.stat(X, Y)$discr