Skip to content
Snippets Groups Projects

Resolve "update nested sampling"

Merged Jadebeck, Johann Fredrik requested to merge 34-update-nested-sampling into develop
@@ -32,12 +32,15 @@ hops::ReversibleJumpProposal::ReversibleJumpProposal(std::unique_ptr<Proposal> p
jumpIndices(jumpIndices),
defaultValues(parameterDefaultValues) {
this->A = A.has_value() ? A.value() : this->proposalImpl->getA();
this->b = b.has_value() ? b.value() : this->proposalImpl->getB();
if (this->jumpIndices.rows() != this->defaultValues.rows()) {
throw std::runtime_error("dimension missmatch in input");
}
if (!this->proposalImpl) {
throw std::runtime_error("proposal mechanism is nullptr.");
}
this->A = A.has_value() ? A.value() : this->proposalImpl->getA();
this->b = b.has_value() ? b.value() : this->proposalImpl->getB();
VectorType parameterState = this->proposalImpl->getState();
this->activationState = Eigen::VectorXd::Ones(parameterState.rows());
Loading