
{{alias}}( t, p )
    Evaluates the moment-generating function (MGF) for a Bernoulli
    distribution with success probability `p` at a value `t`.

    If provided `NaN` as any argument, the function returns `NaN`.

    If `p < 0` or `p > 1`, the function returns `NaN`.

    Parameters
    ----------
    t: number
        Input value.

    p: number
        Success probability.

    Returns
    -------
    out: number
        Evaluated MGF.

    Examples
    --------
    > var y = {{alias}}( 0.2, 0.5 )
    ~1.111
    > y = {{alias}}( 0.4, 0.5 )
    ~1.246
    > y = {{alias}}( NaN, 0.0 )
    NaN
    > y = {{alias}}( 0.0, NaN )
    NaN
    > y = {{alias}}( -2.0, -1.0 )
    NaN
    > y = {{alias}}( 0.2, 2.0 )
    NaN


{{alias}}.factory( p )
    Returns a function for evaluating the moment-generating function (MGF) of a
    Bernoulli distribution with success probability `p`.

    Parameters
    ----------
    p: number
        Success probability.

    Returns
    -------
    mgf: Function
        Moment-generating function (MGF).

    Examples
    --------
    > var mymgf = {{alias}}.factory( 0.8 );
    > var y = mymgf( -0.2 )
    ~0.855

    See Also
    --------

