Statistics: logipdf

### Function Reference: `logipdf`

statistics: y = logipdf (x, mu, s)

Logistic probability density function (PDF).

For each element of x, compute the probability density function (PDF) of the logistic distribution with location parameter mu and scale parameter s. The size of p is the common size of x, mu, and s. A scalar input functions as a constant matrix of the same size as the other inputs.

Both parameters must be reals and `s > 0`. For `s <= 0`, `NaN` is returned.

Further information about the logistic distribution can be found at https://en.wikipedia.org/wiki/Logistic_distribution

See also: logicdf, logiinv, logirnd, logifit, logilike, logistat

Source Code: logipdf

### Example: 1

     ## Plot various PDFs from the logistic distribution
     x = -5:0.01:20;
     y1 = logipdf (x, 5, 2);
     y2 = logipdf (x, 9, 3);
     y3 = logipdf (x, 9, 4);
     y4 = logipdf (x, 6, 2);
     y5 = logipdf (x, 2, 1);
     plot (x, y1, "-b", x, y2, "-g", x, y3, "-r", x, y4, "-c", x, y5, "-m")
     grid on
     ylim ([0, 0.3])
     legend ({"μ = 5, s = 2", "μ = 9, s = 3", "μ = 9, s = 4", ...
              "μ = 6, s = 2", "μ = 2, s = 1"}, "location", "northeast")
     title ("Logistic PDF")
     xlabel ("values in x")
     ylabel ("density")