| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
nullcline
Nullcline representation class in 2D (x, y) plane parameterizable
by x variable only. A third-order univariate spline will be fitted to
the given sample point array using all as knots, and available
through the 'spline' attribute.
Input:
Names are given to the x and y axis directions at initialization.
Third argument nullc_array is the N-by-2 array of N two-dimensional
data points.
The final, optional argument x_relative_scale indicates the relative
scale of the x values' domain compared to the y values. This is
used to provide a form of subjective normalization for measuring
curvature and other geometric properties when plotting y vs. x
on these scales. E.g if x values range over -50 to +50, while
y ranges over 0 to 1, x_relative_scale=100 is appropriate.
N.B.: Only works for nullclines that can be written y = f(x). Future
versions may support non-functions.
Some functions acting on nullclines currently also rely on monotonicity
of y=f(x), and will verify this using the is_monotonic method before
proceeding. Future versions will attempt to resolve that.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Return tangent vector to an interior point of nullcline, normalized to length 1. Set rescale option (default False) to return a vector rescaled according to relative x vs. y scales (thus it's no longer a tangent vector in that case). |
Signed curvature at x is returned (scalar) for scalar x, otherwise array of such scalars for 1D array x. Positive values mean concave "up" in the plane. |
Returns array of signed scalars for each x data point (knot) of the nullcline spline (computed just inside endpoints by 1% of distance to next innermost sample point). Positive values mean concave "up" in the plane. Assumes nullcline is monotonic. |
Returns array of signed scalars for each x data point (knot) of the nullcline spline (computed just inside endpoints by 1% of distance to next innermost sample point). Assumes nullcline is monotonic. |
Concavity scalar +/- 1 or 0 at x is returned for scalar x, otherwise array of such scalars for 1D array x. Positive values mean concave "up" in the plane. |
Returns array of +/- 1 or 0 scalars for each x data point (knot) of the nullcline spline (computed just inside endpoints by 1% of distance to next innermost sample point). Positive values mean concave "up" in the plane. Assumes nullcline is monotonic. |
Returns a new Nullcline object cropped to the (x, y) domain given by pairs xdom and ydom. If resample_frac > 0 (default 0.1), points at the domain ends and additional sample points will be included in the new nullcline object regardless of whether they were in the original sample point set for the cropped nullcline. New points will be selected at the rate indicated, measured as a fraction of the domain width. Points that are as close as 1/10th of this rate to existing sample points will be excluded, to avoid ill-conditioning the spline shape in the resampling. Given the assumption that nullclines are montonic functions of x, this guarantees a unique, contiguous piece of the nullcline is returned. |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Dec 2 23:44:23 2012 | http://epydoc.sourceforge.net |