aerosandbox.modeling.interpolation_unstructured
Attributes
Classes
UnstructuredInterpolatedModel | A model that is interpolated to unstructured (i.e., point cloud) N-dimensional data. Maps from R^N -> R^1. |
Module Contents
class aerosandbox.modeling.interpolation_unstructured.UnstructuredInterpolatedModel(x_data, y_data, x_data_resample=10, resampling_interpolator=interpolate.RBFInterpolator, resampling_interpolator_kwargs=None, fill_value=np.nan, interpolated_model_kwargs=None)
: Bases: aerosandbox.modeling.interpolation.InterpolatedModel
code
A model that is interpolated to unstructured (i.e., point cloud) N-dimensional data. Maps from R^N -> R^1.
You can evaluate this model at a given point by calling it just like a function, e.g.:
```defaulty = my_interpolated_model(x)
code
The input to the model (x in the example above) is of the type:
: - in the general N-dimensional case, a dictionary where: keys are variable names and values are float/array
- in the case of a 1-dimensional input (R^1 -> R^1), it can optionally just be a float/array.
If you’re not sure what the input type of my\_interpolated\_model should be, just do:
```default
>>> print(my_interpolated_model) # Displays the valid input type to the modelcode
The output of the model (y in the example above) is always a float or array.
See the docstring \_\_init\_\_ method of InterpolatedModel for more details of how to instantiate and use UnstructuredInterpolatedModel.
Parameters:
: - **x\_data** (*Union**[**aerosandbox.numpy.ndarray**,* *Dict**[**str**,* *aerosandbox.numpy.ndarray**]**]*) –
- **y\_data** (*aerosandbox.numpy.ndarray*) –
- **x\_data\_resample** (*Union**[**int**,* *Dict**[**str**,* *Union**[**int**,* *aerosandbox.numpy.ndarray**]**]**]*) –
- **resampling\_interpolator** (*object*) –
- **resampling\_interpolator\_kwargs** (*Dict**[**str**,* *Any**]*) –
- **interpolated\_model\_kwargs** (*Dict**[**str**,* *Any**]*) –
x\_data\_raw\_unstructured
y\_data\_raw