Interpolation Strategy (Core)#
alts.core.oracle.interpolation_strategy
- class InterpolationStrategy(data_sampler)[source]#
Bases:
Configurable
,QueryConstrained
DescriptionAnInterpolatingStrategy
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]#
- DescriptionInterpolates 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 useNoInterpolation
instead.
- query_constrain(self) QueryConstrain [source]#
- DescriptionSee
DataSource.query()
- Parameters:
queries – Requested Query
- Returns:
Processed Query, Result
- Return type:
A tuple of two NDArray
- class NoInterpolation[source]#
Bases:
InterpolationStrategy
DescriptionNoInterpolation
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