numenta/nupic — pull request #1355 by breznak (2014-09-21 16:18:14+00:00)
Title: Encoders inherit more from Encoder() class

refactors encoders to share more common fields and methods in parent `base.Encoder` class.
Should simplify creation of a new encoder, and assertion tests share more common paths, so better testing (for tests :) )
I'd like to get this done before I start on reimplementation in c++ https://github.com/numenta/nupic.core/issues/62

fixes #544 , #981 , #944