Learn R Programming

mcMST (version 1.1.1)

scalarizeWeights: Scalarize weight matrizes.

Description

Given a list of weight matrizes weight.mats and a vector of numeric weights, the function returns a single weight matrix. Each component of the resulting matrix is the weighted sum of the corresponding components of the weight matrizes passed.

Usage

scalarizeWeights(weight.mats, lambdas)

Value

[matrix]

Arguments

weight.mats

[list]
List of weight matrizes.

lambdas

[numeric]
Vector of weights.