time-to-botec

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

repl.txt (2060B)


      1 
      2 {{alias}}( [λ] )
      3     Returns a Poisson distribution object.
      4 
      5     Parameters
      6     ----------
      7     λ: number (optional)
      8         Mean parameter. Must be greater than `0`. Default: `1.0`.
      9 
     10     Returns
     11     -------
     12     poisson: Object
     13         Distribution instance.
     14 
     15     poisson.lambda: number
     16         Mean parameter. If set, the value must be greater than `0`.
     17 
     18     poisson.entropy: number
     19         Read-only property which returns the differential entropy.
     20 
     21     poisson.kurtosis: number
     22         Read-only property which returns the excess kurtosis.
     23 
     24     poisson.mean: number
     25         Read-only property which returns the expected value.
     26 
     27     poisson.median: number
     28         Read-only property which returns the median.
     29 
     30     poisson.mode: number
     31         Read-only property which returns the mode.
     32 
     33     poisson.skewness: number
     34         Read-only property which returns the skewness.
     35 
     36     poisson.stdev: number
     37         Read-only property which returns the standard deviation.
     38 
     39     poisson.variance: number
     40         Read-only property which returns the variance.
     41 
     42     poisson.cdf: Function
     43         Evaluates the cumulative distribution function (CDF).
     44 
     45     poisson.logpmf: Function
     46         Evaluates the natural logarithm of the probability mass function (PMF).
     47 
     48     poisson.mgf: Function
     49         Evaluates the moment-generating function (MGF).
     50 
     51     poisson.pmf: Function
     52         Evaluates the probability mass function (PMF).
     53 
     54     poisson.quantile: Function
     55         Evaluates the quantile function at probability `p`.
     56 
     57     Examples
     58     --------
     59     > var poisson = {{alias}}( 6.0 );
     60     > poisson.lambda
     61     6.0
     62     > poisson.entropy
     63     ~2.3
     64     > poisson.kurtosis
     65     ~0.167
     66     > poisson.mean
     67     6.0
     68     > poisson.median
     69     6.0
     70     > poisson.mode
     71     6.0
     72     > poisson.skewness
     73     ~0.408
     74     > poisson.stdev
     75     ~2.449
     76     > poisson.variance
     77     6.0
     78     > poisson.cdf( 4.0 )
     79     ~0.285
     80     > poisson.logpmf( 2.0 )
     81     ~-3.11
     82     > poisson.mgf( 0.5 )
     83     ~49.025
     84     > poisson.pmf( 2.0 )
     85     ~0.045
     86     > poisson.quantile( 0.5 )
     87     6.0
     88 
     89     See Also
     90     --------
     91