time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (435B)


      1 
      2 {{alias}}( p )
      3     Returns the entropy of a geometric distribution with success probability
      4     `p` (in nats).
      5 
      6     If `p < 0` or `p > 1`, the function returns `NaN`.
      7 
      8     Parameters
      9     ----------
     10     p: number
     11         Success probability.
     12 
     13     Returns
     14     -------
     15     out: number
     16         Entropy.
     17 
     18     Examples
     19     --------
     20     > var v = {{alias}}( 0.1 )
     21     ~3.251
     22     > v = {{alias}}( 0.5 )
     23     ~1.386
     24 
     25     See Also
     26     --------
     27