JS: keep the state list sorted and do lookups using binary search

This also allows us to binary search when looking up a particular state.

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Added output for sampled values of distributions

Also, prevent UI or graphics code from perturbing the distributions.

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: avoid an extra wrapper function in Distribution, normalize the Output name as 'Value'

Change the TimeSeries output to the same name to make all SampleProviders provide
a uniform Output name.

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: First pass at implementing a beta distribution

This relies fundamentally on regularized beta code from Apache's Commons
Math library.

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: fix the Distribution Unit tests after checking for an EventManager context

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: revert part of the recent change adding a value output, presentvalue is used in inputs

commit:
b6edf31c31e7f11da962c36991d6d7fc1ac0c6b3 (JS: avoid an extra wrapper function in Distribution, normalize the Output name as 'Value')

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Add the "EntityLogger" object to Basic Objects

Signed-off-by: Harry King <harry.king@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: small cleanups/earlyInit fixes for EntityLogger

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: update version to 2014-28

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>