File: continuous_cosine.rst

package info (click to toggle)
scipy 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 132,464 kB
  • sloc: python: 207,830; ansic: 92,105; fortran: 76,906; cpp: 68,145; javascript: 32,742; makefile: 422; pascal: 421; sh: 158
file content (27 lines) | stat: -rwxr-xr-x 843 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

.. _continuous-cosine:

Cosine Distribution
===================

Approximation to the normal distribution.  The support is :math:`\left[-\pi,\pi\right]`.

.. math::
   :nowrap:

    \begin{eqnarray*} f\left(x\right) & = & \frac{1}{2\pi}\left(1+\cos x\right)\\
    F\left(x\right) & = & \frac{1}{2\pi}\left(\pi+x+\sin x\right)\\
    G\left(q\right) & = & F^{-1}\left(q\right)\\
    M\left(t\right) & = & \frac{\sinh\left(\pi t\right)}{\pi t\left(1+t^{2}\right)}\\
    \mu=m_{d}=m_{n} & = & 0\\
    \mu_{2} & = & \frac{\pi^{2}}{3}-2\\
    \gamma_{1} & = & 0\\
    \gamma_{2} & = & \frac{-6\left(\pi^{4}-90\right)}{5\left(\pi^{2}-6\right)^{2}}\end{eqnarray*}

.. math::
   :nowrap:

    \begin{eqnarray*} h\left[X\right] & = & \log\left(4\pi\right)-1\\
    & \approx & 1.5310242469692907930.\end{eqnarray*}

Implementation: `scipy.stats.cosine`