From a7a0a3eea13ffb149ce8005227e124df88f51c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20D=2E=20Ot=C3=A1lvaro?= Date: Tue, 18 Nov 2025 14:14:20 +0000 Subject: [PATCH] methods needed to be able to separate problem from fit in Pmetrics --- src/bestdose/mod.rs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/bestdose/mod.rs b/src/bestdose/mod.rs index 98547c157..56626aef0 100644 --- a/src/bestdose/mod.rs +++ b/src/bestdose/mod.rs @@ -785,4 +785,34 @@ impl BestDoseProblem { self.bias_weight = weight; self } + + /// Get a reference to the refined posterior support points (Θ) + pub fn posterior_theta(&self) -> &Theta { + &self.theta + } + + /// Get the posterior probability weights + pub fn posterior_weights(&self) -> &Weights { + &self.posterior + } + + /// Get the filtered population weights used for the bias term + pub fn population_weights(&self) -> &Weights { + &self.population_weights + } + + /// Get the prepared target subject + pub fn target_subject(&self) -> &Subject { + &self.target + } + + /// Get the currently configured bias weight (λ) + pub fn bias_weight(&self) -> f64 { + self.bias_weight + } + + /// Get the selected optimization target type + pub fn target_type(&self) -> Target { + self.target_type + } }