Scilab Function
Last update : 22/07/2008

lft_direct_d - [For comparison only] Legendre-Fenchel conjugate, direct computation on {1,...,n}

Calling Sequence

Conj = lft_direct_d(Y)

Parameters

Description

Warning: This function is provided only for comparison purposes and unit testing, use the more efficient lft_llt_d for faster computation.

Wrap over for easier computation of distance transforms. The function calls lft_direct(X,Y,S) with n=length(Y), X=(1:1:n)' and S=X. See lft_direct for more information.

Examples

        row = [1 2.5 5 8.5 13]';
        conj_part = -1.*lft_direct_d(row);
        b = isequal(conj_part, [0 -1.5 -4 -7.5 -12]');
  

See Also

lft_direct,  lft_llt_d,  

Author

Yves Lucet, University of British Columbia, BC, Canada

Used Function

lft_direct