You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The timeseries_to_grid function should be able to generate a symbolic time series for predefined cell edges as well (e.g. generating partitions or Voronoi cells).
Maybe we should resort to something simple like this:
functiontimeseries_to_grid(timeseries::TimeSeries{T,1}, partition::Function) where T <:Real
L =length(timeseries)
symbolic_timeseries =Vector{Int64}(undef, L)
for i in1:L
symbolic_timeseries[i] =partition(timeseries[i][1])
endreturn symbolic_timeseries
end
allowing the total control over the partitioning scheme.
And then one can go
using StateTransitionNetworks,DynamicalSystems
functionf(u, p, n)
r = p[1]
x = u[1]
if x<=r
returnSVector(x/r)
elsereturnSVector((1-x)/(1-r))
endend
r =0.99
ds =DeterministicIteratedMap(f, [0.4], [r])
orbit,t =trajectory(ds,10^4;Ttr=1000)
tent_generating_partition(x::Float64,r::Float64) = x <= r ?1:2
sts =timeseries_to_grid(orbit,x ->tent_generating_partition(x,r))
timeseries_to_grid methods that dispatch to partition::Function were pushed. We should think about implementing all previous gridding through this kind of method.
The
timeseries_to_grid
function should be able to generate a symbolic time series for predefined cell edges as well (e.g. generating partitions or Voronoi cells).We could do something like this (assuming an ordered
cell_edges
list):This is extremely slow, but we need to find the right cell for the actual state of the system.
The text was updated successfully, but these errors were encountered: