Skip to content

Commit ae2348c

Browse files
committed
processor_tda: Use precise value for dimension
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 8572307 commit ae2348c

File tree

1 file changed

+1
-1
lines changed
  • plugins/processor_tda

1 file changed

+1
-1
lines changed

plugins/processor_tda/tda.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ static void tda_window_run_ripser(struct tda_window *w,
987987
}
988988

989989
/* After the loop, copy the "most plausible" values into betti. */
990-
betti.num_dims = 2;
990+
betti.num_dims = 3; /* we track b0, b1, b2 */
991991
betti.betti[0] = best_b0;
992992
betti.betti[1] = best_b1;
993993
betti.betti[2] = best_b2;

0 commit comments

Comments
 (0)