Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 772 Bytes

File metadata and controls

18 lines (17 loc) · 772 Bytes

GenerationSpace.GetEntropy(ModuleSet) Method

Calculates the entropy of a set of modules.
Entropy is csharp -sum(p log(p) ) over all modules where each p is the probability of the module

public float GetEntropy(BrewedInk.WFC.ModuleSet modules);

Parameters

modules ModuleSet
A set of modules

Returns

System.Single
The entropy of the given set of modules