First pass at building the graph, but still off from running it

This commit is contained in:
Jeff Moser
2010-09-25 22:16:47 -04:00
parent eee44c9746
commit 8e9e2d0d86
5 changed files with 18 additions and 12 deletions

View File

@ -93,7 +93,7 @@ class GaussianWeightedSumFactor extends GaussianFactor
}
$currentWeights[$currentDestinationWeightIndex] = $currentWeight;
$currentWeightsSquared[$currentDestinationWeightIndex] = $currentWeight*currentWeight;
$currentWeightsSquared[$currentDestinationWeightIndex] = $currentWeight*$currentWeight;
$variableIndices[$currentDestinationWeightIndex + 1] = $currentWeightSourceIndex + 1;
$currentDestinationWeightIndex++;