IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
penalty_matrix.m File Reference

Detailed Description

Linear combination of differential operators.

Returns a [nf]x[nf] symmetric matrix. It contains a weighted sum of different matrices D_i'*D_i. the coefficients of the sum are given by dcoeff. D_0 is eye(nf, nf). D_i is the i-th order differential operator such that D_i*x = diff(x, i).

Definition in file penalty_matrix.m.

Go to the source code of this file.

Functions

function penalty_matrix (in nf, in dcoeff)
 

Function Documentation

function penalty_matrix ( in  nf,
in  dcoeff 
)
Parameters
nfNumber of features
dcoeffCoefficient vector for 0th, 2nd, 3rd derivative and so on
Returns
See above.