| Modifier and Type | Class and Description |
|---|---|
| private static class | PolynomialsUtils.
Inner class for Jacobi polynomials keys. |
| private static interface | PolynomialsUtils.
Interface for recurrence coefficients generation. |
| Modifier and Type | Field and Description |
|---|---|
| private static final List | CHEBYSHEV_COEFFICIENTS
Coefficients for Chebyshev polynomials. |
| private static final List | HERMITE_COEFFICIENTS
Coefficients for Hermite polynomials. |
| private static final Map | JACOBI_COEFFICIENTS
Coefficients for Jacobi polynomials. |
| private static final List | LAGUERRE_COEFFICIENTS
Coefficients for Laguerre polynomials. |
| private static final List | LEGENDRE_COEFFICIENTS
Coefficients for Legendre polynomials. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static PolynomialFunction | Returns: coefficients arraydegree of the polynomial degree, final List<BigFraction> list where the computed coefficients are stored coefficients, final PolynomialsUtils.recurrence coefficients generator generator
Deprecated
as a consequence of
PolynomialFunction being deprecated.
Get the coefficients array for a given degree. |
| private static void | computeUpToDegree(final int
maximal degree degree, final int current maximal degree maxDegree, final PolynomialsUtils.recurrence coefficients generator generator,list where the computed coefficients should be appended coefficients)Compute polynomial coefficients up to a given degree. |
| public static PolynomialFunction | Returns: Chebyshev polynomial of specified degreedegree of the polynomial degree)
Deprecated
as a consequence of
PolynomialFunction being deprecated.
Create a Chebyshev polynomial of the first kind. |
| public static PolynomialFunction | Returns: Hermite polynomial of specified degreedegree of the polynomial degree)
Deprecated
as a consequence of
PolynomialFunction being deprecated.
Create a Hermite polynomial. |
| public static PolynomialFunction | Returns: Jacobi polynomial of specified degreedegree of the polynomial degree, final int first exponent v, final int second exponent w)
Deprecated
as a consequence of
PolynomialFunction being deprecated.
Create a Jacobi polynomial. |
| public static PolynomialFunction | Returns: Laguerre polynomial of specified degreedegree of the polynomial degree)
Deprecated
as a consequence of
PolynomialFunction being deprecated.
Create a Laguerre polynomial. |
| public static PolynomialFunction | Returns: Legendre polynomial of specified degreedegree of the polynomial degree)
Deprecated
as a consequence of
PolynomialFunction being deprecated.
Create a Legendre polynomial. |
| public static double[] | Returns: the coefficients \(b_i\) of the shifted polynomial.Coefficients of the original polynomial. coefficients, final double Shift value. shift)Compute the coefficients of the polynomial \(P_s(x)\)
whose values at point |
| CHEBYSHEV_COEFFICIENTS | back to summary |
|---|---|
| private static final List<BigFraction> CHEBYSHEV_COEFFICIENTS Coefficients for Chebyshev polynomials. | |
| HERMITE_COEFFICIENTS | back to summary |
|---|---|
| private static final List<BigFraction> HERMITE_COEFFICIENTS Coefficients for Hermite polynomials. | |
| JACOBI_COEFFICIENTS | back to summary |
|---|---|
| private static final Map<PolynomialsUtils. Coefficients for Jacobi polynomials. | |
| LAGUERRE_COEFFICIENTS | back to summary |
|---|---|
| private static final List<BigFraction> LAGUERRE_COEFFICIENTS Coefficients for Laguerre polynomials. | |
| LEGENDRE_COEFFICIENTS | back to summary |
|---|---|
| private static final List<BigFraction> LEGENDRE_COEFFICIENTS Coefficients for Legendre polynomials. | |
| PolynomialsUtils | back to summary |
|---|---|
| private PolynomialsUtils() Private constructor, to prevent instantiation. | |
| buildPolynomial | back to summary |
|---|---|
| private static PolynomialFunction buildPolynomial(final int degree, final List<BigFraction> coefficients, final PolynomialsUtils. Deprecated as a consequence of Get the coefficients array for a given degree.
| |
| computeUpToDegree | back to summary |
|---|---|
| private static void computeUpToDegree(final int degree, final int maxDegree, final PolynomialsUtils. Compute polynomial coefficients up to a given degree.
| |
| createChebyshevPolynomial | back to summary |
|---|---|
| public static PolynomialFunction createChebyshevPolynomial(final int degree)
Deprecated as a consequence of Create a Chebyshev polynomial of the first kind. Chebyshev polynomials of the first kind are orthogonal polynomials. They can be defined by the following recurrence relations: \( T_0(x) = 1 \\ T_1(x) = x \\ T_{k+1}(x) = 2x T_k(x) - T_{k-1}(x) \)
| |
| createHermitePolynomial | back to summary |
|---|---|
| public static PolynomialFunction createHermitePolynomial(final int degree)
Deprecated as a consequence of Create a Hermite polynomial. Hermite polynomials are orthogonal polynomials. They can be defined by the following recurrence relations: \( H_0(x) = 1 \\ H_1(x) = 2x \\ H_{k+1}(x) = 2x H_k(X) - 2k H_{k-1}(x) \)
| |
| createJacobiPolynomial | back to summary |
|---|---|
| public static PolynomialFunction createJacobiPolynomial(final int degree, final int v, final int w)
Deprecated as a consequence of Create a Jacobi polynomial. Jacobi polynomials are orthogonal polynomials. They can be defined by the following recurrence relations: \( P_0^{vw}(x) = 1 \\ P_{-1}^{vw}(x) = 0 \\ 2k(k + v + w)(2k + v + w - 2) P_k^{vw}(x) = \\ (2k + v + w - 1)[(2k + v + w)(2k + v + w - 2) x + v^2 - w^2] P_{k-1}^{vw}(x) \\ - 2(k + v - 1)(k + w - 1)(2k + v + w) P_{k-2}^{vw}(x) \)
| |
| createLaguerrePolynomial | back to summary |
|---|---|
| public static PolynomialFunction createLaguerrePolynomial(final int degree)
Deprecated as a consequence of Create a Laguerre polynomial. Laguerre polynomials are orthogonal polynomials. They can be defined by the following recurrence relations: \( L_0(x) = 1 \\ L_1(x) = 1 - x \\ (k+1) L_{k+1}(x) = (2k + 1 - x) L_k(x) - k L_{k-1}(x) \)
| |
| createLegendrePolynomial | back to summary |
|---|---|
| public static PolynomialFunction createLegendrePolynomial(final int degree)
Deprecated as a consequence of Create a Legendre polynomial. Legendre polynomials are orthogonal polynomials. They can be defined by the following recurrence relations: \( P_0(x) = 1 \\ P_1(x) = x \\ (k+1) P_{k+1}(x) = (2k+1) x P_k(x) - k P_{k-1}(x) \)
| |
| shift | back to summary |
|---|---|
| public static double[] shift(final double[] coefficients, final double shift) Compute the coefficients of the polynomial \(P_s(x)\)
whose values at point
More precisely, let \(\Delta = \)
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | v
First exponent. |
| private final int | w
Second exponent. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the instance and the other key refer to the same polynomialother key key)Overrides java. Check if the instance represent the same key as another instance. |
| public int |
| v | back to summary |
|---|---|
| private final int v First exponent. | |
| w | back to summary |
|---|---|
| private final int w Second exponent. | |
| JacobiKey | back to summary |
|---|---|
| pack-priv JacobiKey(final int v, final int w) Simple constructor.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object key) Overrides java. Check if the instance represent the same key as another instance. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Get hash code.
| |
| Modifier and Type | Method and Description |
|---|---|
| public BigFraction[] | Returns: an array of three coefficients such that \( P_{k+1}(x) = (a[0] + a[1] x) P_k(x) - a[2] P_{k-1}(x) \)highest degree of the polynomials used in the recurrence k)Generate recurrence coefficients. |
| generate | back to summary |
|---|---|
| public BigFraction[] generate(int k) Generate recurrence coefficients.
| |