Skip to content

Commit 4f1c8f4

Browse files
authored
bug fix in recursive estimator
1 parent f0fb395 commit 4f1c8f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shape_estimation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def frechetMean(mfd, pointset, weights):
4747
t = weights / jnp.cumsum(weights)
4848

4949
loop = lambda i, mean: mfd.connec.geopoint(mean, pointset[idx[i]], t[i])
50-
return jax.lax.fori_loop(1, num, loop, pointset[0])
50+
return jax.lax.fori_loop(1, num, loop, pointset[idx[0]])
5151

5252

5353
class ShapeEstimation:

0 commit comments

Comments
 (0)