


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