


FIVERuleDist: Calculate the distances of the observation from the rule antecedents
[RD]=FIVERuleDist(U,VE,R,X)
Where:
U: is the universe (a vector of discrete values in increasing order),
VE: is the generated vague environment (the scaled distances on the universe U)
If VE(k,1)=0, it is the primitive integral of the scaling function according
to the elements of U
If VE(k,1)=-1, it is the integral of the scaling function between
the neighboring elements of U
R: is the Rulebase
X: is the observation
In case of U,VE,X, the rows are the dimensions
RD: is the scaled distance of the observation from the rule antecedents
RD<0 denotes that RD=inf. This case abs(RD) is a distance
counted based on the number of inf values in VE between the
observation from the rule antecedents.
Rulebase:
R1: a1 a2 a3 ... am -> b
R2: a1 a2 a3 ... am -> b
R3: a1 a2 a3 ... am -> b
...
Rn: a1 a2 a3 ... am -> b
If ai=NaN then the rule antecedent ai is not given