If you look at the paper "Neuro-Fuzzy Modeling and Control" by
Roger Janag, published in Proceeding of IEEE Vol. 83, No. 3, 1995
you can simply formulate as following
triangle(x; a, b, c) =
max( min((x-a)/(b-a), (c-x)/(c-b)), 0)
proving with usual max() and min() function.
where a, b, c is the 3 points of the triangle.
e.g) triangle(64; 60, 65, 70) = 0.8
you can also formulate for trapezoid and others.
jkim
-- I get knocked down But I get up again You're never going to keep me down- song from CHUMBAWAMBA
Kim, Il-Joong (jkim@computer.org) Intelligent System Control Research Center Korea Institue of Science & Technology
TEL. +82-2-958-5748 PAG. +82-015-8321-6656 URL. http://amadeus.kist.re.kr/~jkim/