__init__(self,
x,
y,
func,
*args,
**kwargs)
(Constructor)
| source code
|
Create an instance of the Profiler2D() class. Requires 2 coordinate
arrays and a function object for profile.
The function can also be given as an interpolation object.
The optional args and kwargs give the additional arguments for the
function, which are ignored in case func is an interpolation object.
The default coordinate grids are both evaluated for the function. They
are saved in self.z, as an array of dimensions (x.size,y.size).
Alternatively, new evaluations can be attained through eval and diff.
- Parameters:
x (array) - The default coordinates of the primary independent variable.
Minimum three points.
y (array) - The default coordinates of the secondary independent variable.
Minimum three points.
func (function/interpolation object) - The function that describes the profile with respect to x and y.
Can be given as a 2D interpolation object.
args (tuple) - Additional parameters passed to the functions when eval or diff
are called.
(default: [])
kwargs (dict) - Additional keywords passed to the functions when eval or diff are
called.
(default: {})
- Overrides:
object.__init__
|