time-to-botec

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

repl.txt (1808B)


      1 
      2 {{alias}}( x, a, b )
      3     Evaluates the natural logarithm of the cumulative distribution function
      4     (CDF) for Kumaraswamy's double bounded distribution with first shape
      5     parameter `a` and second shape parameter `b` at a value `x`.
      6 
      7     If provided `NaN` as any argument, the function returns `NaN`.
      8 
      9     If `a <= 0` or `b <= 0`, the function returns `NaN`.
     10 
     11     Parameters
     12     ----------
     13     x: number
     14         Input value.
     15 
     16     a: number
     17         First shape parameter.
     18 
     19     b: number
     20         Second shape parameter.
     21 
     22     Returns
     23     -------
     24     out: number
     25         Evaluated logCDF.
     26 
     27     Examples
     28     --------
     29     > var y = {{alias}}( 0.5, 1.0, 1.0 )
     30     ~-0.693
     31     > y = {{alias}}( 0.5, 2.0, 4.0 )
     32     ~-0.38
     33     > y = {{alias}}( 0.2, 2.0, 2.0 )
     34     ~-2.546
     35     > y = {{alias}}( 0.8, 4.0, 4.0 )
     36     ~-0.13
     37     > y = {{alias}}( -0.5, 4.0, 2.0 )
     38     -Infinity
     39     > y = {{alias}}( 1.5, 4.0, 2.0 )
     40     0.0
     41 
     42     > y = {{alias}}( 2.0, -1.0, 0.5 )
     43     NaN
     44     > y = {{alias}}( 2.0, 0.5, -1.0 )
     45     NaN
     46 
     47     > y = {{alias}}( NaN, 1.0, 1.0 )
     48     NaN
     49     > y = {{alias}}( 0.0, NaN, 1.0 )
     50     NaN
     51     > y = {{alias}}( 0.0, 1.0, NaN )
     52     NaN
     53 
     54 
     55 {{alias}}.factory( a, b )
     56     Returns a function for evaluating the natural logarithm of the cumulative
     57     distribution function (CDF) of a Kumaraswamy's double bounded distribution
     58     with first shape parameter `a` and second shape parameter `b`.
     59 
     60     Parameters
     61     ----------
     62     a: number
     63         First shape parameter.
     64 
     65     b: number
     66         Second shape parameter.
     67 
     68     Returns
     69     -------
     70     logcdf: Function
     71         Logarithm of cumulative distribution function (CDF).
     72 
     73     Examples
     74     --------
     75     > var mylogcdf = {{alias}}.factory( 0.5, 1.0 );
     76     > var y = mylogcdf( 0.8 )
     77     ~-0.112
     78     > y = mylogcdf( 0.3 )
     79     ~-0.602
     80 
     81     See Also
     82     --------
     83