AML syntax versus pythonic syntax#

This is a simple example to illustrate that the old AML syntax can still be used, as well as the new object-python syntax

"""
Simple test to illustrate usage of GNUPlot on Mixture data
"""
# import stat_tool modules
from openalea.stat_tool import *
from openalea.stat_tool.plot  import *

# Download histograms
meri1 = Histogram("../../test/data/meri1.his")
meri2 = Histogram("../../test/data/meri2.his")
meri3 = Histogram("../../test/data/meri3.his")
meri4 = Histogram("../../test/data/meri4.his")
meri5 = Histogram("../../test/data/meri5.his")

#Merge the histograms
meri_a = Merge(meri1, meri2, meri3, meri4, meri5)
print meri_a.display()

meri_b = meri1.merge([meri2, meri3, meri4, meri5])
print meri_b.display()


The two Merge calls return the same output:

histogram - sample size: 424
mean: 13.1179   variance: 34.6858   standard deviation: 5.88947
coefficient of skewness: -0.142591   coefficient of kurtosis: -0.997803
mean absolute deviation: 4.99081   coefficient of concentration: 0.255743
information: -1284.16 (-3.02869)