# 正交函数基

http://en.wikipedia.org/wiki/Basis_function

Polynomial bases

The collection of quadratic polynomials with real coefficients has {1, t, t²} as a basis. Every quadratic can be written as a1+bt+ct², that is, as a linear combination of the basis functions 1, t, and t². The set {(1/2)(t-1)(t-2), –t(t-2), (1/2)t(t-1)} is another basis for quadratic polynomials, called the Lagrange basis.

http://en.wikipedia.org/wiki/Lagrange_polynomial

Orthogonal polynomials

http://en.wikipedia.org/wiki/Orthogonal_polynomials

Legendre polynomials

# 将文件打印成ps格式

To install the MS Publisher Imagesetter virtual printer, open the `Printers` settings folder, and click `Add Printer`. Select a local printer; since it is virtual, select the FILE: port. Specify `Generic` as manufacturer, and then you can choose the MS Publisher Imagesetter.
Then change the file extension to *.ps

PostScript printer drivers for Windows

qpr -q smips *.ps

# an inefficient 3D point viewer

Given a disparity map and a color image, want to view the 3D scene created by these 2 images:

clear;

s = size(C);
m = s(1,1); % row
n = s(1,2); % columm

figure;
for x=1:1:m
for y=1:1:n
plot3(x, y, Index(x,y,1), ‘color’, [C(x,y,1), C(x,y,2), C(x,y,3)]), hold on;
end
end

（用plot来画大量的点的时候效率就低，加上每个点都指定不同的color，估计就更不行了。）

# tex4ht

The Translation Process
http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn37.html

The system can be activated with a sequence of commands of the following form, typically embedded within a script.
latex x (or ‘tex x’)
latex x
latex x
tex4ht x
t4ht x
The three compilations with La(TeX) are needed to ensure proper links.