Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra bin when using probabilities vs invariantmeasure #338

Open
kahaaga opened this issue Dec 10, 2023 · 4 comments
Open

Extra bin when using probabilities vs invariantmeasure #338

kahaaga opened this issue Dec 10, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@kahaaga
Copy link
Member

kahaaga commented Dec 10, 2023

CC @rusandris (moved your comment into a separate issue)

          This might be a separate issue, but since it is related, I'll mention it here.

Why one get different number of states in the outcome space when using probabilities vs. invariantmeasure?

using DynamicalSystems

henon_rule(x, p, n) = SVector{2}(1.0 - p[1]*x[1]^2 + x[2], p[2]*x[1])
henon = DeterministicIteratedMap(henon_rule, zeros(2), [1.4, 0.3])
orbit, t = trajectory(henon, 20_000; Ttr = 500)

using ComplexityMeasures
grid_size = 20
binning = RectangularBinning(grid_size)
p_cm = probabilities(ValueBinning(binning),orbit) #100 states

which gives a 100 states.

iv = invariantmeasure(orbit,binning)
P_cm,symbols = transfermatrix(iv) #101 states?? 

which in contrast gives 101 states, despite using the same binning.

Originally posted by @rusandris in #337 (comment)

@kahaaga
Copy link
Member Author

kahaaga commented Dec 10, 2023

I thought this had to do with #328, but it seems that the problem is not that, because I can still reproduce this issue on main.

@rusandris
Copy link
Contributor

because I can still reproduce this issue on main

Yes, it's still there in the 3.0 release as well

@Datseris Datseris added the bug Something isn't working label Jan 14, 2024
@Datseris
Copy link
Member

is this solved? wasn't this about the usage of precise?

@kahaaga
Copy link
Member Author

kahaaga commented Jan 14, 2024

This isn't solved. The issue was unrelated to the use of precise, or at least not entirely solved by utilizing precise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants