Interpolation Strategy (Core)#

alts.core.oracle.interpolation_strategy

class InterpolationStrategy(data_sampler)[source]#

Bases: Configurable, QueryConstrained

Description
An InterpolatingStrategy is an ambivalent source of data depending on the DataSampler it interpolates within.
This is a base class not intended for direct use.
Parameters:

data_sampler (DataSampler) – A sample of the data which contains the to be interpolated data points

data_sampler: DataSampler = Field(name=None,type=None,default=<dataclasses._MISSING_TYPE object>,default_factory=<dataclasses._MISSING_TYPE object>,init=False,repr=False,hash=None,compare=True,metadata=mappingproxy({}),_field_type=None)#
interpolate(self, data_points) data_points[source]#
Description
Interpolates a tuple of two data points and returns the interpolated tuple of length 2.
This implementation of interpolate returns the twople as is. If this is the result you wish to achieve, please use NoInterpolation instead.
Parameters:

data_points – A tuple of two data_points to be interpolated

Returns:

The interpolated tuple of length 2

Return type:

Tuple(NDArray, NDArray)

query_constrain(self) QueryConstrain[source]#
Description
See DataSource.query()
Parameters:

queries – Requested Query

Returns:

Processed Query, Result

Return type:

A tuple of two NDArray

class NoInterpolation[source]#

Bases: InterpolationStrategy

Description
NoInterpolation is an interpolator that does nothing to the given data.
Parameters:

data_sampler (DataSampler) – A sample of the data which contains the to-be interpolated data points