gfuncpy.grid_function module
- class gfuncpy.grid_function.GridFunction(x=None, y=None)[source]
Bases:
objectAssuming x is sorted and y is in the corresponding order
- d()
Return a new GridFunction containing the derivative computed using the weighted central difference operator (handles non-uniform grids).
Endpoints where a central difference cannot be formed will be NaN.
- derivative()[source]
Return a new GridFunction containing the derivative computed using the weighted central difference operator (handles non-uniform grids).
Endpoints where a central difference cannot be formed will be NaN.
- classmethod from_dataframe(df, y, x=None)[source]
must specify y (a column name) if x is not specified will use index of the DataFrame
- int(frm=None, to=None)
Compute the integral of the function using the trapezoidal rule.
- integrate(frm=None, to=None)[source]
Compute the integral of the function using the trapezoidal rule.
- property x
- class gfuncpy.grid_function.Identity(nodes, n=None)[source]
Bases:
GridFunction