Home > FRIT > NearestTwoRules.m

NearestTwoRules

PURPOSE ^

NearestTwoRules:Seek those two rules, which are the closest ones to the observation

SYNOPSIS ^

function [NearestLeft,NearestRight,fis]=NearestTwoRules(fis,obs,w)

DESCRIPTION ^

 NearestTwoRules:Seek  those two rules, which are the closest ones to the observation

 [NearestLeft,NearestRight,fis]=NearestTwoRules(fis,obs,w)

 Seek  those two rules, which are the closest ones to the observation
 and which are surrounding the observation. The lower and upper distances
 between the rules and the observation are also calculated.
 -------------------------------------------------------------------------
 Parameters
 -------------------------------------------------------------------------
 obs - structure describing the observation.
           obs(i)--name
                 |-type
                 |-params
                 |-paramsy
                 |-ObsName
                 |-inf
                 |-sup
 fis - structure describing the fuzzy inference system. 
       fis--name
          |-andMethod
          |-orMethod
          |-defuzzMethod
          |-impMethod
          |-aggMethod
          |-input(i)--name
          |          |-range
          |          |-mf(j)--name
          |                 |-type
          |                 |-params
          |                 |-paramsy
          |                 |-inf
          |                 |-sup
          |-output(k)--name
          |          |-range
          |          |-mf(l)--name
          |                 |-type
          |                 |-params
          |                 |-paramsy
          |                 |-inf
          |                 |-sup
          |-rule(m)--antecedent
          |        |-consequent
          |        |-weight
          |        |-connection
 w - parameter in the Minkowski type distance formula.
 -------------------------------------------------------------------------
 Returned values
 -------------------------------------------------------------------------
 NearestLeft - 
 NearestRight - 
 fis - 
 -------------------------------------------------------------------------
 Remarks
 -------------------------------------------------------------------------

 Zsolt Csaba Johanyįk, johanyak.csaba@gamf.kefo.hu, v. 1.1,  11 November 2006

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 05-Sep-2008 09:37:47 by m2html © 2005