[Numpy-discussion] Recognizing a cycle in a vector

Manolo Martínez manolo at austrohungaro.com
Thu Nov 26 10:18:01 EST 2015


Dear all,

Suppose that I have a vector with the numerical solution of a
differential equation -- more concretely, I am working with evolutionary
game theory models, and the solutions are frequencies of types in a
population that follows the replicator dynamics; but this is probably
irrelevant.

Sometimes these solutions are cyclical, yet I sample at points which do
not correspond with the period of the cycle, so that np.allclose()
cannot be directly applied. 

Is there any way to check for cycles in this situation?

Thanks for any advice,
Manolo



More information about the NumPy-Discussion mailing list