length#
- openalea.hydroroot.length.diff(law1, ref_law)[source]#
deprecated Calculate the difference between the inetgrale of the two laws :param law1: scipy spline object :param ref_law: scipy spline object
- openalea.hydroroot.length.fit_law(x, y, scale=0.0, k=1, s=0, **kwds)[source]#
Return a spline interpolation of y(x)
- Parameters:
x – (float list)
y – (float list)
scale – (float) - number dividing x and y if > 0 (Default value = 0.)
k – (int) - degree of the smoothing spline (Default value = 1)
s – (float) - positive smoothing factor used to choose the number of knots (Default value = 0)
kwds – additional arguments see scipy doc of UnivariateSpline
- Returns:
spline object
- openalea.hydroroot.length.fit_length(csvdata, length='1e-4', k=1, s=0.0)[source]#
Fit a 1D spline from (x, y) csv extracted data.
Retrieve the values it will be applied to from the prop_in of the MTG. And evaluate the spline to compute the property ‘prop_out’
- Parameters:
csvdata
length – number dividing data if > 0 (Default value = ‘1e-4’)
k – (int) - degree of the smoothing spline (Default value = 1)
s – (float) - positive smoothing factor used to choose the number of knots (Default value = 0)
- Returns:
spline object
Download the source file ../../src/openalea/hydroroot/length.py.