alpha {xnet} | R Documentation |
Getters for linearFilter objects
Description
These functions allow you to extract slots from objects of the
class linearFilter
.
Usage
alpha(x)
na_removed(x)
## S3 method for class 'linearFilter'
mean(x, ...)
## S4 method for signature 'linearFilter'
mean(x, ...)
## S4 method for signature 'linearFilter'
colMeans(x)
## S4 method for signature 'linearFilter'
rowMeans(x)
## S4 method for signature 'linearFilter'
alpha(x)
## S4 method for signature 'linearFilter'
na_removed(x)
Arguments
x |
a |
... |
arguments passed to or from other methods. |
Value
for mean
: the mean of the original matrix
for colMeans
: a numeric vector with the column means
for rowMeans
: a numeric vector with the row means
for alpha
: a numeric vector of length 4 with the alpha
values.
for na_removed
: a logical value indicating whether
missing values were removed prior to the fitting of the filter.
Examples
data(drugtarget)
lf <- linear_filter(drugTargetInteraction, alpha = 0.25)
alpha(lf)
mean(lf)
colMeans(lf)
na_removed(lf)
[Package xnet version 0.1.11 Index]