Preparation of a function, even to the importation of n, the function call seeking +1/n 1/2+1/4+ .... When n is odd input, the function call 1/1+1/3+ ... +1/n (using function pointer)
image compression using btc algorithm. matlab program. This function accepts an image(color or gray) and compresses it using the block truncation coding.
By building a nonlinear function relationship between an d the error signal,this paper presents a no—
vel variable step size LMS(Least Mean Square)adaptive filtering algorithm.
% COMPDIR Computes a search direction in a subspace defined by Z.
% Helper function for NLCONST.
% Returns Newton direction if possible.
% Returns random direction if gradient is small.
% Otherwise, returns steepest descent direction.
% If the steepest descent direction is small it computes a negative
% curvature direction based on the most negative eigenvalue.
% For singular matrices, returns steepest descent even if small.