[Index for rtools] [Return to Master Index] [Return to www.radarworks.com]

RT_cfar

(rtools/RT_cfar.m)


Function Synopsis

Z = RT_cfar(data, model, Nwindow, Nguard, k1, k2)

Help text

function Z = RT_cfar(data, model, Nwindow, Nguard, k1, k2)

 A wrapper function for cfarmex.c

 Given vector sample data, returns the CFAR test statistic Z
 for the following models:
 CA   - Cell Average
 CAGO - Cell Average Greatest Of
 CASO - Cell Average Smallest Of
 OS   - Order Statistic (k1th largest)
 TM   - Trimmed Mean (k1 smallest & k2 largest trimmed)

 Edge effects are present for the first and last
 (Nwindow + Nguard)/2 samples. These are set to ZERO.

 The definition of Z is as follows [1]:
 If X[Nw] is defined as a moving vector of data, length Nwindow,
 and allowing Nguard cells centred around the test value:

 Z_CA   = sum(X[Nw])
 Z_CAGO = max(sum(left X[Nw/2]), sum(right X[Nw/2]))
 Z_CASO = min(sum(left X[Nw/2]), sum(right X[Nw/2]))
 Z_OS   = k1 largest of sort(X[Nw])
 Z_TM   = sum( sort(X[Nw]) k1 lowest trimmed, k2 highest trimmed)

 Definitions:
  [1] `Analysis of CFAR Processors in Nonhomogeneous
   Background', P.P.Gandhi and S.A.Kassam, IEEE Trans. AES,
   24(4), July 1988, pp 427-445

 Part of the Matlab Radar Toolbox v0.11 by Glen Davidson at www.radarworks.com
 Please acknowledge use of this toolbox in any publication or software.
 This header must be retained in any derivative work

Cross-Reference Information

This function is called by

Produced by mat2html on Mon Mar 17 16:14:19 2003
Cross-Directory links are: OFF