rusandris / StateTransitionNetworks.jl

Toolkit for dynamics on state transition networks
2 stars 0 forks source link

Bug `renyi_entropy_spectrum` when `x` is not provided #17

Closed rusandris closed 7 months ago

rusandris commented 8 months ago

There is a bug in renyi_entropy_spectrum(P,qs) when x stationary distribution vector is not provided. -> ERROR: DimensionMismatch

That is because x is still nothing at that point. FIX:

if isempty(x)
  x = stationary_distribution(P)
end

should be the first lines of the function.

rusandris commented 7 months ago

Fixed by f8c2f3f