Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 975 Bytes

File metadata and controls

19 lines (18 loc) · 975 Bytes

GenerationSpace.GetEntropy(Slot) Method

Calculates the current entropy of a slot.
Entropy is roughly equal to the number of modules left in the slot's wave function. The contribution of each module is weighted by the module's weight. Weight
The exact entropy calculation is csharp -sum( p log(p) ) over all modules where each p is the probability of the module.

public float GetEntropy(BrewedInk.WFC.Slot slot);

Parameters

slot Slot
The slot to find the entropy of

Returns

System.Single
The current entropy of the slot