OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_Polynomial.h>
Public Member Functions | |
Polynomial () | |
Polynomial (const FloatingType *coefficients, int numCoefficients) | |
Polynomial (const Polynomial &)=default | |
Polynomial (Polynomial &&)=default | |
Polynomial & | operator= (const Polynomial &)=default |
Polynomial & | operator= (Polynomial &&)=default |
template<typename... Values> | |
Polynomial (Values... items) | |
FloatingType | operator[] (int index) const noexcept |
FloatingType & | operator[] (int index) noexcept |
FloatingType | operator() (FloatingType x) const noexcept |
int | getOrder () noexcept |
Polynomial< FloatingType > | withGain (double gain) const |
Polynomial< FloatingType > | getSumWith (const Polynomial< FloatingType > &other) const |
Polynomial< FloatingType > | getProductWith (const Polynomial< FloatingType > &other) const |
A class representing a polynomial
Definition at line 38 of file juce_Polynomial.h.
|
inline |
Creates a new polynomial which will always evaluate to zero.
Definition at line 43 of file juce_Polynomial.h.
|
inline |
Creates a new polynomial with given coefficients.
numCoefficients | The number of coefficients stored in coefficients. This is also the order of the returned polynomial. |
coefficients | The coefficients which will be used by the newly created polynomial. The Polynomial class will keep a private copy of the coefficients. |
Definition at line 56 of file juce_Polynomial.h.
|
default |
Creates a copy of another polynomial.
|
default |
Creates a copy of another polynomial.
|
inline |
Creates a new polynomial with coefficients by a C++11 initializer list. This function can be used in the following way: Polynomial<float> p ({0.5f, -0.3f, 0.2f});
Definition at line 79 of file juce_Polynomial.h.
|
inlinenoexcept |
Returns the order of the polynomial.
Definition at line 104 of file juce_Polynomial.h.
|
inline |
computes the product of two polynomials and return the result
Definition at line 136 of file juce_Polynomial.h.
|
inline |
Returns the sum of this polynomial with another
Definition at line 122 of file juce_Polynomial.h.
|
inlinenoexcept |
Evaluates the value of the polynomial at a single point x.
Definition at line 92 of file juce_Polynomial.h.
|
default |
Creates a copy of another polynomial.
|
default |
Creates a copy of another polynomial.
|
inlinenoexcept |
Returns a single coefficient of the receiver for reading
Definition at line 86 of file juce_Polynomial.h.
|
inlinenoexcept |
Returns a single coefficient of the receiver for modifying.
Definition at line 89 of file juce_Polynomial.h.
|
inline |
Returns the polynomial with all its coefficients multiplied with a gain factor
Definition at line 111 of file juce_Polynomial.h.