Title: | Group-level Clustering on 'RAVE' Electrode Signals |
---|---|
Description: | More about what it does (maybe more than one line) Use four spaces when indenting paragraphs within the Description. |
Authors: | Xiang Zhang [cre, aut], Zhengjia Wang [aut] |
Maintainer: | Xiang Zhang <[email protected]> |
License: | GPL-3 |
Version: | 0.1.0.9000 |
Built: | 2024-11-24 04:43:11 UTC |
Source: | https://github.com/z94007/raveclusters |
Calculate cluster centroid and mean standard error
cluster_mse(indata_plot, cluster)
cluster_mse(indata_plot, cluster)
Calculate clustering index
cluster_index_methods(simplify = TRUE) cluster_index( x, cluster, dist, dist_args = list(), methods = "default", check = TRUE ) best_criterion(index) best_nclusters(index)
cluster_index_methods(simplify = TRUE) cluster_index( x, cluster, dist, dist_args = list(), methods = "default", check = TRUE ) best_criterion(index) best_nclusters(index)
simplify |
whether to return unlisted method names |
x |
numerical matrix of original data (dimension: sample size times number of variate) |
cluster |
integer vector or matrix of the clustering results. see 'Details' |
dist |
distance matrix of |
dist_args |
see |
methods |
cluster index criterion; a full list can be obtained via
|
check |
see 'Details' |
index |
the table returned by function |
When cluster
is an integer vector, its length must be equal
to the sample size. The observations with the same integer are considered
to be in the same cluster. If cluster
is a matrix, then its row must
be consistent with the sample size.
For 'ball_hall'
, 'trace_w'
, 'trace_wib'
, and
'log_ss_ratio'
, cluster
must be a matrix so
best_criterion
and best_nclusters
can work properly.
In addition, the number of clusters indicated by cluster
columns
must be increasing. The cluster_index
will check cluster
by
default, which can be disabled by specifying check=FALSE
Convert 'RAVE' cluster results into a readable table
convert_cluster_table(x, split_by = "A", var = "C", value = "B")
convert_cluster_table(x, split_by = "A", var = "C", value = "B")
x |
a list of cluster results |
split_by |
variable name to be split by; for example, |
var |
variable name indicating the cluster results; for example,
|
value |
the name of variable to concatenate into a single string or cell
value; for example, |
A data.frame
that is readable
Function to load all dev funtions and wrap them within an environment
dev_raveclusters(expose_functions = FALSE, reload = TRUE)
dev_raveclusters(expose_functions = FALSE, reload = TRUE)
expose_functions |
logical indicating whether to expose all dev functions to the global environment |
reload |
logical, do you want to fast-reload the package before load the functions? |
Data import functions used to locate data exported by power explorer module.
scan_power_explorer_exports(search_paths, pattern = "\\.fst$") find_source(search_paths, fname) import_configurations(search_paths, file_names)
scan_power_explorer_exports(search_paths, pattern = "\\.fst$") find_source(search_paths, fname) import_configurations(search_paths, file_names)
search_paths |
directories to search for data |
pattern |
search regular expression pattern |
fname |
character vector of length 1: file name to locate within |
file_names |
vector of |
potential file names to be loaded
Global variables used by 'RAVE' clustering module
RAVE_ROI_KEY shiny_cex.main
RAVE_ROI_KEY shiny_cex.main
An object of class character
of length 1.
An object of class numeric
of length 1.