


Calculates the lower and upper distances between the rules and the observation.
This is the first half of 'NearestTwoRules' for 'KHstabilized'.
fis = distances(fis,obs,w)
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
fis - structure describing the fuzzy inference system
-------------------------------------------------------------------------
Remarks
-------------------------------------------------------------------------
Zsolt Csaba Johanyák, johanyak.csaba@gamf.kefo.hu, v. 1.1, 11 November 2006
Modified by:
Krisztián Balázs, 19 June 2008