OpenShot Library | OpenShotAudio 0.2.2
juce_SpecialFunctions.h
1
2/** @weakgroup juce_dsp-maths
3 * @{
4 */
5/*
6 ==============================================================================
7
8 This file is part of the JUCE library.
9 Copyright (c) 2017 - ROLI Ltd.
10
11 JUCE is an open source library subject to commercial or open-source
12 licensing.
13
14 By using JUCE, you agree to the terms of both the JUCE 5 End-User License
15 Agreement and JUCE 5 Privacy Policy (both updated and effective as of the
16 27th April 2017).
17
18 End User License Agreement: www.juce.com/juce-5-licence
19 Privacy Policy: www.juce.com/juce-5-privacy-policy
20
21 Or: You may also use this code under the terms of the GPL v3 (see
22 www.gnu.org/licenses).
23
24 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
25 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
26 DISCLAIMED.
27
28 ==============================================================================
29*/
30
31namespace juce
32{
33namespace dsp
34{
35
36/**
37 Contains miscellaneous filter design and windowing functions.
38
39 @tags{DSP}
40*/
42{
43 /** Computes the modified Bessel function of the first kind I0 for a
44 given double value x. Modified Bessel functions are useful to solve
45 various mathematical problems involving differential equations.
46 */
47 static double besselI0 (double x) noexcept;
48
49 /** Computes the complete elliptic integral of the first kind K for a
50 given double value k, and the associated complete elliptic integral
51 of the first kind Kp for the complementary modulus of k.
52 */
53 static void ellipticIntegralK (double k, double& K, double& Kp) noexcept;
54
55 /** Computes the Jacobian elliptic function cd for the elliptic
56 modulus k and the quarter-period units u.
57 */
58 static Complex<double> cde (Complex<double> u, double k) noexcept;
59
60 /** Computes the Jacobian elliptic function sn for the elliptic
61 modulus k and the quarter-period units u.
62 */
63 static Complex<double> sne (Complex<double> u, double k) noexcept;
64
65 /** Computes the inverse of the Jacobian elliptic function sn
66 for the elliptic modulus k and the quarter-period units u.
67 */
68 static Complex<double> asne (Complex<double> w, double k) noexcept;
69};
70
71} // namespace dsp
72} // namespace juce
73
74/** @}*/
Contains miscellaneous filter design and windowing functions.
static Complex< double > sne(Complex< double > u, double k) noexcept
Computes the Jacobian elliptic function sn for the elliptic modulus k and the quarter-period units u.
static double besselI0(double x) noexcept
Computes the modified Bessel function of the first kind I0 for a given double value x.
static Complex< double > cde(Complex< double > u, double k) noexcept
Computes the Jacobian elliptic function cd for the elliptic modulus k and the quarter-period units u.
static Complex< double > asne(Complex< double > w, double k) noexcept
Computes the inverse of the Jacobian elliptic function sn for the elliptic modulus k and the quarter-...
static void ellipticIntegralK(double k, double &K, double &Kp) noexcept
Computes the complete elliptic integral of the first kind K for a given double value k,...