fuzzy-logic and fuzzy-rules are really handy for some problems.
Adrian E.
gem "fuzzy-logic", "~> 0.0.2"