get_weighted_average_sim: Find average similarity value in region, weighted by RCA

Description Usage Arguments Value

View source: R/get_weighted_average_sim.R

Description

In the rca matrix, each region (row) has a number of units (col) with the value 1. From these units, the function finds the average value of similarity to each unit, weighted by the RCA value in the rca_mat.

Usage

1
get_weighted_average_sim(rca_mat, sim_mat)

Arguments

rca_mat

non-binary rca matrix with region rows, units in columns

sim_mat

similarity matrix with units on both dimensions.

Value

matrix with regions in rows, units in columns. The elements are the weighted average similarity-value in the region (row) to the given unit (column).


sbpdata/compost documentation built on Nov. 5, 2019, 6:17 a.m.