<< legendre_norm Legendre legendre_poly >>

Orthogonal Polynomials >> Orthogonal Polynomials > Legendre > legendre_pdf

legendre_pdf

Legendre PDF

Calling Sequence

y=legendre_pdf(x)

Parameters

x :

a matrix of doubles

y :

a matrix of doubles, the probability density

Description

Computes the Legendre probability distribution function:

for x in [-1,1]. Its integral is equal to 1.

Examples

x=linspace(-1,1,1000);
y=legendre_pdf(x);
h=scf();
plot(x,y)
xtitle("Legendre distribution","x","f(x)")
h.children.data_bounds(:,2)=[-0.1;0.6];

Authors


Report an issue
<< legendre_norm Legendre legendre_poly >>