ENH: Distribution. Basing the Distribution class on a List instead of

a Map.

Resizing by doubling and mapping data when a new entry is added that
is outside of the current bounds.  Trimming the output (normalised or
raw) to only the entries that contain data.

Overriding List clear method to enable the Distribution to be reset,
but retaining the correct number of components.
This commit is contained in:
graham
2010-02-10 17:50:31 +00:00
parent c91ffbdbe8
commit 867f419731
7 changed files with 226 additions and 85 deletions

View File

@ -34,7 +34,7 @@ Description
normalDistribution(mean, sigma, x) = \
sqrt(1.0/(2.0*pi*sigma**2))*exp(-(x - mean)**2.0/(2.0*sigma**2))
plot normalDistribution(8.5, 2.5, x)
plot normalDistribution(8.5, 2.5, x), "Distribution_scalar_test_x" w p
@endverbatim
\*---------------------------------------------------------------------------*/