Turi Create
4.0
|
#include <model_server/extensions/timeseries/interpolate_value.hpp>
Public Member Functions | |
virtual bool | support_type (flex_type_enum type) const =0 |
virtual flex_type_enum | set_input_types (const std::vector< flex_type_enum > &types) |
virtual std::string | name () const =0 |
virtual flexible_type | interpolate (const flexible_type &t, const flexible_type &t1, const flexible_type &t2, const flexible_type &v1, const flexible_type &v2) const =0 |
Simple interface for 2-D interpolation required for re-sample. functions.
As an example, consider the following simple function which interpolates values linearly.
Interpolates the value at t, using the values at (t1, v1), (t2, v2)
Definition at line 36 of file interpolate_value.hpp.
|
pure virtual |
Interpolate the value at t, given the (t1, v1) and (t2, v2)
|
pure virtual |
Returns a printable name of the operation.
|
inlinevirtual |
Sets the input types and returns the output type.
Default implementation assumes there is ony one input, and output type is the same as input type.
Definition at line 52 of file interpolate_value.hpp.
|
pure virtual |
Returns true if the the aggregate_value can consume a column of this type, and false otherwise. (For instance, a sum aggregator can consume integers and floats, and not anything else).