fg_feat_mean_class {flowGraph} | R Documentation |
For each class label in column class
of meta
,
fg_feat_mean_class
takes the column mean of the rows in the given feature matrices
(as specified in node_features
and edge_features
)
associated with that class;
it then takes the difference point by point between these means and
the original rows for that class.
FUNCTION_DESCRIPTION
fg_feat_mean_class( fg, class, no_cores = 1, node_features = NULL, edge_features = NULL )
fg |
PARAM_DESCRIPTION |
class |
a column name in |
no_cores |
An integer indicating how many cores to parallelize on. |
node_features |
A string vector indicating the node features to
perform normalization on; set as |
edge_features |
A string vector indicating the edge features to
perform normalization on; set as |
For all features in the given flowGraph
object and for
each class label in column class
of meta
,
fg_feat_mean_class
. It takes the column mean of the rows in the given
feature matrices
(as specified in node_features
and edge_features
)
associated with that class;
it then takes the difference point by point between these means and
the original rows for that class.
fg_feat_mean_class
A numeric matrix whose dimensions equate to that of the input and whose values are normalized per class.
flowGraph object with normalized features.
no_cores <- 1 data(fg_data_pos30) fg <- flowGraph(fg_data_pos30$count, class=fg_data_pos30$meta$class, prop=FALSE, specenr=FALSE, no_cores=no_cores) fg <- fg_feat_mean_class(fg, class="class", node_features="count", no_cores=no_cores)