Learn R Programming

ldamatch (version 1.0.3)

.combine_sets: Combines current best and candidate sets, keeping the highest metric value.

Description

Combines current best and candidate sets, keeping the highest metric value.

Usage

.combine_sets(best, candidate)

Value

A list containing the highest metric and a list of set values (sets).

Arguments

best

A list(metric, sets); metric is a number, set is a list of vectors.

candidate

A list(metric, set); metric is a number, set is a vector. Candidate is only considered if metric is not zero.