scalarizeWeights: Scalarize weight matrizes.

View source: R/helpers.R

scalarizeWeightsR Documentation

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)

Arguments

weight.mats

[list]
List of weight matrizes.

lambdas

[numeric]
Vector of weights.

Value

[matrix]


mcMST documentation built on April 1, 2023, 12:19 a.m.