Best Subset Problem
constructor(parameters: Parameters, numberOfTopics: Int, averagePrecisions: MutableMap<String, DoubleArray>, meanAveragePrecisions: DoubleArray, topicLabels: Array<String>, correlationStrategy: (DoubleArray, DoubleArray) -> Double, targetStrategy: (BinarySolution, Double) -> BinarySolution)
Secondary constructor kept for API compatibility with older boxed‑array call sites. It converts boxed AP rows to primitives and builds PrecomputedData internally.
Parameters
parameters
Run parameters.
number Of Topics
Number of topics.
average Precisions
Map: systemId → AP vector (boxed Double
).
mean Average Precisions
Historical/compatibility param (unused; see warning).
topic Labels
Human‑readable topic labels.
correlation Strategy
Old boxed correlation (Array<Double>, Array<Double>) -> Double
.
target Strategy
Objective installer for the selected target.
constructor(parameters: Parameters, numberOfTopics: Int, precomputedData: PrecomputedData, topicLabels: Array<String>, legacyBoxedCorrelation: (DoubleArray, DoubleArray) -> Double, targetStrategy: (BinarySolution, Double) -> BinarySolution)