File: continuous_cosine.rst

package info (click to toggle)
scipy 1.16.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 236,092 kB
  • sloc: cpp: 503,720; python: 345,302; ansic: 195,677; javascript: 89,566; fortran: 56,210; cs: 3,081; f90: 1,150; sh: 857; makefile: 792; pascal: 284; csh: 135; lisp: 134; xml: 56; perl: 51
file content (27 lines) | stat: -rw-r--r-- 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`