Home > marl > lib > mdegs.m

mdegs

PURPOSE ^

Computes membership degrees in a set of membership functions

SYNOPSIS ^

function mu = mdegs(x, mfs)

DESCRIPTION ^

Computes membership degrees in a set of membership functions
  MU = MDEGS(X, MFS)
  Computes membership degrees in a set of membership functions (MFs)

  Parameters:
   X           - crisp number whose membership degree needs to be computed
   MFS         - the set of MFs. Must contain the following fields:
       'type'      - the type of the MFs. 't', for connecting
       triangular (i.e., triangular MFs, and each point falls within
       exactly two MFs).
       'n'         - number of MFs
       'c'         - centers of MFs. A column vector of length MFS.n
       'rollover'  - if the interval rolls over from one end to the other,
       such as for angles in [0, 2pi]. If so, membership degrees will be
       exchanged between the two MFs at the ends of the interval.
  Returns:
   MU          - a column vector of membership degrees

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 04-Aug-2010 16:55:08 by m2html © 2005