Example. Signed counts in one dimension [fdip-013Z]

In one dimension the grid simplices are the oriented edges from \(r\) to \(r+1\). An edge contributes \(1\) to the signed count at \(y\) when it rises across \(y\), and \(-1\) when it falls across \(y\). A zero vertex \(r\) is nondegenerate exactly when both neighbors have nonzero values. If \(f(r-1)<0<f(r+1)\), the edge leaving \(r\) contributes \(1\) in a positive direction and the edge entering \(r\) contributes \(1\) in a negative direction. Reversing both signs gives local degree \(-1\). If the two neighbors have the same sign, one direction sees two opposite contributions and the other sees none. The local degree is then zero.