Add static
parent
be8008e4ee
commit
f6f782a088
|
|
@ -81,7 +81,7 @@ static GaussianMixtureFactor::Sum &addGaussian(
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
GaussianMixtureFactor::Sum sumFrontals(
|
static GaussianMixtureFactor::Sum sumFrontals(
|
||||||
const HybridGaussianFactorGraph &factors) {
|
const HybridGaussianFactorGraph &factors) {
|
||||||
// sum out frontals, this is the factor on the separator
|
// sum out frontals, this is the factor on the separator
|
||||||
gttic(sum);
|
gttic(sum);
|
||||||
|
|
@ -136,7 +136,7 @@ GaussianMixtureFactor::Sum sumFrontals(
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
std::pair<HybridConditional::shared_ptr, HybridFactor::shared_ptr>
|
static std::pair<HybridConditional::shared_ptr, HybridFactor::shared_ptr>
|
||||||
continuousElimination(const HybridGaussianFactorGraph &factors,
|
continuousElimination(const HybridGaussianFactorGraph &factors,
|
||||||
const Ordering &frontalKeys) {
|
const Ordering &frontalKeys) {
|
||||||
GaussianFactorGraph gfg;
|
GaussianFactorGraph gfg;
|
||||||
|
|
@ -157,7 +157,7 @@ continuousElimination(const HybridGaussianFactorGraph &factors,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
std::pair<HybridConditional::shared_ptr, HybridFactor::shared_ptr>
|
static std::pair<HybridConditional::shared_ptr, HybridFactor::shared_ptr>
|
||||||
discreteElimination(const HybridGaussianFactorGraph &factors,
|
discreteElimination(const HybridGaussianFactorGraph &factors,
|
||||||
const Ordering &frontalKeys) {
|
const Ordering &frontalKeys) {
|
||||||
DiscreteFactorGraph dfg;
|
DiscreteFactorGraph dfg;
|
||||||
|
|
@ -182,7 +182,7 @@ discreteElimination(const HybridGaussianFactorGraph &factors,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
std::pair<HybridConditional::shared_ptr, HybridFactor::shared_ptr>
|
static std::pair<HybridConditional::shared_ptr, HybridFactor::shared_ptr>
|
||||||
hybridElimination(const HybridGaussianFactorGraph &factors,
|
hybridElimination(const HybridGaussianFactorGraph &factors,
|
||||||
const Ordering &frontalKeys,
|
const Ordering &frontalKeys,
|
||||||
const KeySet &continuousSeparator,
|
const KeySet &continuousSeparator,
|
||||||
|
|
@ -302,6 +302,7 @@ hybridElimination(const HybridGaussianFactorGraph &factors,
|
||||||
return {boost::make_shared<HybridConditional>(conditional), factor};
|
return {boost::make_shared<HybridConditional>(conditional), factor};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************
|
/* ************************************************************************
|
||||||
* Function to eliminate variables **under the following assumptions**:
|
* Function to eliminate variables **under the following assumptions**:
|
||||||
* 1. When the ordering is fully continuous, and the graph only contains
|
* 1. When the ordering is fully continuous, and the graph only contains
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue