time-to-botec

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

repl.txt (1458B)


      1 
      2 {{alias}}( x, μ, c )
      3     Evaluates the logarithm of the probability density function (PDF) for a Lévy
      4     distribution with location parameter `μ` and scale parameter `c` at a value
      5     `x`.
      6 
      7     If provided `NaN` as any argument, the function returns `NaN`.
      8 
      9     If provided `c <= 0`, the function returns `NaN`.
     10 
     11     Parameters
     12     ----------
     13     x: number
     14         Input value.
     15 
     16     μ: number
     17         Location parameter.
     18 
     19     c: number
     20         Scale parameter.
     21 
     22     Returns
     23     -------
     24     out: number
     25         Evaluated logPDF.
     26 
     27     Examples
     28     --------
     29     > var y = {{alias}}( 2.0, 0.0, 1.0 )
     30     ~-2.209
     31     > y = {{alias}}( -1.0, 4.0, 2.0 )
     32     -Infinity
     33     > y = {{alias}}( NaN, 0.0, 1.0 )
     34     NaN
     35     > y = {{alias}}( 0.0, NaN, 1.0 )
     36     NaN
     37     > y = {{alias}}( 0.0, 0.0, NaN )
     38     NaN
     39     // Negative scale parameter:
     40     > y = {{alias}}( 2.0, 0.0, -1.0 )
     41     NaN
     42 
     43 
     44 {{alias}}.factory( μ, c )
     45     Returns a function for evaluating the logarithm of the probability density
     46     function (PDF) of a Lévy distribution with location parameter `μ` and scale
     47     parameter `c`.
     48 
     49     Parameters
     50     ----------
     51     μ: number
     52         Location parameter.
     53 
     54     c: number
     55         Scale parameter.
     56 
     57     Returns
     58     -------
     59     logpdf: Function
     60         Logarithm of probability density function (PDF).
     61 
     62     Examples
     63     --------
     64     > var mylogPDF = {{alias}}.factory( 10.0, 2.0 );
     65     > var y = mylogPDF( 11.0 )
     66     ~-1.572
     67 
     68     See Also
     69     --------
     70