Skip to content

Commit a7a0a3e

Browse files
committed
methods needed to be able to separate problem from fit in Pmetrics
1 parent 0cf949f commit a7a0a3e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/bestdose/mod.rs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,4 +785,34 @@ impl BestDoseProblem {
785785
self.bias_weight = weight;
786786
self
787787
}
788+
789+
/// Get a reference to the refined posterior support points (Θ)
790+
pub fn posterior_theta(&self) -> &Theta {
791+
&self.theta
792+
}
793+
794+
/// Get the posterior probability weights
795+
pub fn posterior_weights(&self) -> &Weights {
796+
&self.posterior
797+
}
798+
799+
/// Get the filtered population weights used for the bias term
800+
pub fn population_weights(&self) -> &Weights {
801+
&self.population_weights
802+
}
803+
804+
/// Get the prepared target subject
805+
pub fn target_subject(&self) -> &Subject {
806+
&self.target
807+
}
808+
809+
/// Get the currently configured bias weight (λ)
810+
pub fn bias_weight(&self) -> f64 {
811+
self.bias_weight
812+
}
813+
814+
/// Get the selected optimization target type
815+
pub fn target_type(&self) -> Target {
816+
self.target_type
817+
}
788818
}

0 commit comments

Comments
 (0)