edu.jhu.bme.smile.commons.math.specialFunctions
Class Legendre

java.lang.Object
  extended by edu.jhu.bme.smile.commons.math.specialFunctions.Legendre

public class Legendre
extends java.lang.Object

Author:
bennett

Constructor Summary
Legendre()
           
 
Method Summary
static double val(int L, double x)
          * Legendre polynomials can be defined by the following recurrence relations: P0(X) = 1 P1(X) = X (k+1) Pk+1(X) = (2k+1) X Pk(X) - k Pk-1(X)
static double val(int L, int M, double x)
          Associated Legendre Polynomials See: http://en.wikipedia.org/wiki/Legendre_function
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Legendre

public Legendre()
Method Detail

val

public static double val(int L,
                         double x)
* Legendre polynomials can be defined by the following recurrence relations: P0(X) = 1 P1(X) = X (k+1) Pk+1(X) = (2k+1) X Pk(X) - k Pk-1(X)

Parameters:
L - - degree
x - - location value
Returns:
P_L(x)

val

public static double val(int L,
                         int M,
                         double x)
Associated Legendre Polynomials See: http://en.wikipedia.org/wiki/Legendre_function

Parameters:
L - - degree
M - - order
x - - location value
Returns:
P^M_L(x)