Builder pattern usage

Converted current encoders to use Builder Pattern initialization
Provides example for subsequent encoder development.

Fixes #102 
Master contains the latest that I've done. CategoryEncoder is a different
beast because it inherits from ScalarEncoder, so the generics get a little
crazy. Don't look at it as an example, just use the ScalarEncoder as an
example.  :)

On Sun, Nov 9, 2014 at 8:24 AM, Utensil Song <notifications@github.com>
wrote:

> In src/main/java/org/numenta/nupic/encoders/CategoryEncoder.java:
>
> > @@ -29,6 +29,23 @@
> >   *
> >   * The SDRCategoryEncoder (not yet implemented in Java) uses a different method to encode categories
> >   *
> > + * <P>
> > + * Typical usage is as follows:
> > + * <PRE>
> > + * CategoryEncoder.Builder builder =  ((CategoryEncoder.Builder)CategoryEncoder.builder())
> > + *      .w(3)
>
> I believe this line is outdated because you've improved it by generic, am
> I right? @cogmission <https://github.com/cogmission>
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/numenta/htm.java/pull/103/files#r20058965>.
>



-- 
*We find it hard to hear what another is saying because of how loudly "who
one is", speaks...*