continuous_timeseries.discrete_to_continuous.higher_order#
Conversion of discrete to continuous data assuming higher-order interpolation
Here, "higher-order" means quadratic or higher.
In general, this sort of interpolation is tricky and can easily go wrong. This module is intended as a convenience. However, in most cases, you will want to use the lower-level interfaces more directly so you have better control of the result.
Functions:
| Name | Description |
|---|---|
discrete_to_continuous_higher_order |
Convert a discrete timeseries to piecewise higher-order polynomial. |
discrete_to_continuous_higher_order #
discrete_to_continuous_higher_order(
x: PINT_NUMPY_ARRAY,
y: PINT_NUMPY_ARRAY,
name: str,
order: int,
) -> TimeseriesContinuous
Convert a discrete timeseries to piecewise higher-order polynomial.
Here, higher-order means quadratic or higher. For details, see the module's docstring.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
PINT_NUMPY_ARRAY
|
The discrete x-values from which to convert |
required |
y
|
PINT_NUMPY_ARRAY
|
The discrete y-values from which to convert |
required |
name
|
str
|
The value to use to set the result's name attribute |
required |
order
|
int
|
Order of the polynomial to fit and return. |
required |
Returns:
| Type | Description |
|---|---|
TimeseriesContinuous
|
Continuous version of |