vec_math
Class Legendre
java.lang.Object
vec_math.RecursivePolynom
vec_math.Legendre
- All Implemented Interfaces:
- Derivative, Function
public class Legendre
- extends RecursivePolynom
- implements Derivative
The recursive formular for the Legendre polynomials. Start the recursion with
i=0.
|
Constructor Summary |
Legendre(double[] c,
double min,
double max)
The coefficients of the Legendre polynomial must at least suffice for a
linear relation. |
|
Method Summary |
double |
derivative(double x)
The first derivative of the Legendre polynomial with order n is defined
as: (1-x&pow2;)P'_n(x)=(n+1)*x*P_n(x)-(n+1)*P_n+1(x) |
static Derivative |
ofOrder(int n)
Returns the function that is the sole Legendre polynomial of the given
order. |
protected double |
recursion(int o,
double norm,
double xm1,
double xm2)
The recursion for the Legendre polynomials is |
Legendre
public Legendre(double[] c,
double min,
double max)
- The coefficients of the Legendre polynomial must at least suffice for a
linear relation. The min and max define the range of allowed parameter
space.
recursion
protected double recursion(int o,
double norm,
double xm1,
double xm2)
- The recursion for the Legendre polynomials is
x_i = 1/i*((2i-1)*norm*x_i-1-(i-1)*x_i-2), i >= 2
- Specified by:
recursion in class RecursivePolynom
derivative
public double derivative(double x)
- The first derivative of the Legendre polynomial with order n is defined
as:
(1-x&pow2;)P'_n(x)=(n+1)*x*P_n(x)-(n+1)*P_n+1(x)
- Specified by:
derivative in interface Derivative
ofOrder
public static Derivative ofOrder(int n)
- Returns the function that is the sole Legendre polynomial of the given
order.