mxgmn / WaveFunctionCollapse

Bitmap & tilemap generation from a single example with the help of ideas from quantum mechanics
Other
23.05k stars 1.23k forks source link

potentially erroneous entropy calculation #56

Closed keudosan closed 4 years ago

keudosan commented 4 years ago

https://github.com/mxgmn/WaveFunctionCollapse/blob/3157ed05751f7a25a78b623d3a5fe67488fc4ce7/Model.cs#L61 as far as i can tell, this expression does not end up being equal to the definition of shannon entropy. could a proof of this formula's correctness be provided?

keudosan commented 4 years ago

well i figured it out a few minutes later, so nevermind that