Baseline.Surface#
Baseline.Surface.py
- class Surface(x, y, add_spline=False)#
Bases:
object
A class to represent a 2D surface defined by the outer product of two 1D arrays.
- Z#
The 2D surface defined by the outer product of the two input arrays.
- Type:
2D array-like
- spline#
A spline representation of the surface. If None, no spline is available.
- Type:
RectBivariateSpline or None
Initializes the Surface object with the given x and y arrays. :param x: The x-values defining the surface. :type x: array-like :param y: The y-values defining the surface. :type y: array-like :param add_spline: Whether to create a spline representation of the surface (default is False). :type add_spline: bool, optional
- get()#
Get the 2D surface array.
- Returns:
Z – The 2D surface defined by the outer product of the two input arrays.
- Return type:
2D array-like