as.SimilarityMatrix: Convert a matrix to a similarity matrix....

Description Usage Arguments Value Examples

View source: R/similarityMatrix.R

Description

Convert a matrix to a similarity matrix. as.SimilarityMatrix convert an adjacency matrix to a similarity matrix.

Usage

1

Arguments

mat

a symmetric adjacency matrix

Value

a similarity matrix.

Examples

1
2
symmetricMatrix <- as.symmetricAdjacencyMatrix(monkeyGrooming, weighted = TRUE, rule = "weak")
similarityMatrix <- as.SimilarityMatrix(symmetricMatrix)

DCG documentation built on May 29, 2017, 2:55 p.m.

Search within the DCG package
Search all R packages, documentation and source code