Skip to content
Snippets Groups Projects
Commit 11f79450 authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

added pinear/polynomial interpolation wrapper to ts_operators and to the operators dictionary

parent 03baae50
No related branches found
No related tags found
4 merge requests!193Release 1.4,!188Release 1.4,!49Dataprocessing features,!44Dataprocessing features
......@@ -37,7 +37,9 @@ SAQC_OPERATORS = {
"normScale": ts_ops.normScale,
"meanStandardize": ts_ops.standardizeByMean,
"medianStandardize": ts_ops.standardizeByMedian,
"zLog": ts_ops.zeroLog
"zLog": ts_ops.zeroLog,
"linear": ts_ops.linearInterpolation,
"polynomial": ts_ops.polynomialInterpolation
}
......
......@@ -228,6 +228,14 @@ def interpolateNANs(data, method, order=2, inter_limit=2, downgrade_interpolatio
return data
def linearInterpolation(data, inter_limit=2):
return interpolateNANs(data, 'time', inter_limit=inter_limit)
def polynomialInterpolation(data, inter_limit=2, inter_order=2):
return interpolateNANs(data, 'polynomial', inter_limit=inter_limit, order=inter_order)
def leaderClustering(in_arr, ball_radius=None):
x_len = in_arr.shape[0]
x_cols = in_arr.shape[1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment