mRMRe (version 2.0.3)

sampleWeights: Accessor function for the 'sampleWeights' information in a mRMRe.Data object

Description

TODO

Usage

## S3 method for class 'mRMRe.Data':
sampleWeights(object)
## S3 method for class 'mRMRe.Data':
sampleWeights(object) <- value

Arguments

object
a mRMRe.Data object.
value
a numeric vector containing the biases of each sample in the mutual information computation.

Examples

Run this code
data(cgps)
feature_data <- mRMR.data(data = data.frame(cgps.ge))

# Uniform weight (default)
sampleWeights(feature_data)

# Random weighting  
sampleWeights(feature_data) <- runif(sampleCount(feature_data))
# Show result
sampleWeights(feature_data)

Run the code above in your browser using DataLab