View source: R/similarity_measures.R
noisify | R Documentation |
Creates similarity measure functions which adds random noise at certain magnitude to the data before calculating the similarity score
noisify( sim.scores = mean_scale(), magnitude = 1e-05, noise = c("none", "uniform", "normal") )
sim.scores |
The list of objects of class sim.measure to nosify |
magnitude |
The magnitude of the noise to add. This is: The standard deviation for normal noise and the radius for the interval for uniform noise |
noise |
The type of noise to add.
|
A list of sim.measure objects corresponding to the input where noise have been added
library(micInt) sim_measures <- similarity_measures(subset = c("pearson","spearman","jaccard")) noised_sim_measures <- noisify(sim_measures,magnitude = 1e-3,noise = c("normal")) noised_sim_measures # Notice that jaccard_normal is missing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.