Function shannonEntropyPerEvent

  • Given the number of equally-likely results per event, return the Shannon entropy of the event in bits.

    Parameters

    • possibleResults: number

      the number of equally-likely results per event; e.g. for a coin, 2, for dice, the number of faces (for a standard die, 6)

    Returns number

Generated using TypeDoc