Home > custom > colfilt_filters > extremity_mean.m

extremity_mean

PURPOSE ^

PURPOSE: colfilt function to calculate deviation from mean

SYNOPSIS ^

function [r] = extremity_mean(X)

DESCRIPTION ^

 PURPOSE: colfilt function to calculate deviation from mean
          returns the value of a gridcell minus the mean value of its
          neighbourhood (as definded by the calling function).

 See also: colfilt()

 Felix Hebeler, Geography Dept., University Zurich, July 2006.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [r] = extremity_mean(X)
0002 % PURPOSE: colfilt function to calculate deviation from mean
0003 %          returns the value of a gridcell minus the mean value of its
0004 %          neighbourhood (as definded by the calling function).
0005 %
0006 % See also: colfilt()
0007 %
0008 % Felix Hebeler, Geography Dept., University Zurich, July 2006.
0009 
0010 r=X(ceil(size(X,1)/2),:)-nanmean(X);

Generated on Tue 24-Feb-2009 19:14:50 by m2html © 2003