time-to-botec

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

repl.txt (600B)


      1 
      2 {{alias}}( p )
      3     Evaluates the logit function.
      4 
      5     Let `p` be the probability of some event. The logit function is defined as
      6     the logarithm of the odds `p / (1-p)`.
      7 
      8     If `p < 0` or `p > 1`, the function returns `NaN`.
      9 
     10     Parameters
     11     ----------
     12     p: number
     13         Input value.
     14 
     15     Returns
     16     -------
     17     y: number
     18         Function value.
     19 
     20     Examples
     21     --------
     22     > var y = {{alias}}( 0.2 )
     23     ~-1.386
     24     > y = {{alias}}( 0.9 )
     25     ~2.197
     26     > y = {{alias}}( -4.0 )
     27     NaN
     28     > y = {{alias}}( 1.5 )
     29     NaN
     30     > y = {{alias}}( NaN )
     31     NaN
     32 
     33     See Also
     34     --------
     35