Timescale hyperfunctions 是一组专门的函数,允许您分析时序数据。您可以使用 hyperfunctions 分析您存储为时序数据的任何内容,包括 IoT 设备、IT 系统、营销分析、用户行为、财务指标和加密货币。

一些 hyperfunctions 默认包含在 Timescale 中。 对于其他 hyperfunctions,您需要安装 Timescale Toolkit PostgreSQL 扩展。

有关更多信息,请参阅 hyperfunctions 文档

近似去重计数函数

Hyperfunction 类型Hyperfunction 名称工具包实验性
hyperloglog() 函数
聚合hyperloglog()
备选聚合approx_count_distinct()
访问器distinct_count()
stderror()
汇总rollup()

计数器和仪表函数

降采样函数

Hyperfunction 类型Hyperfunction 名称工具包实验性
函数asap_smooth()
gp_lttb()
lttb()

金融分析函数

Hyperfunction 类型Hyperfunction 名称工具包实验性
candlestick_agg() 函数
聚合candlestick_agg()
访问器close()
close_time()
high()
high_time()
low()
open()
low_time()
open_time()
volume()
vwap()
伪聚合candlestick()
汇总rollup()

频率分析函数

Hyperfunction 类型Hyperfunction 名称工具包实验性
count_min_sketch() 函数
聚合count_min_sketch()
访问器approx_count()
freq_agg() 函数
聚合freq_agg()
访问器into_values()
max_frequency()
min_frequency()
topn()
备选聚合mcv_agg()
汇总rollup()

填充空白函数

Hyperfunction 类型Hyperfunction 名称工具包实验性
Buckettime_bucket_gapfill()
内插器interpolate()
locf()

最小值和最大值函数

Hyperfunction 类型Hyperfunction 名称工具包实验性
max_n() 函数
聚合max_n()
访问器into_array()
into_values()
汇总rollup()
max_n_by() 函数
聚合max_n_by()
访问器into_values()
汇总rollup()
min_n() 函数
聚合min_n()
访问器into_array()
into_values()
汇总rollup()
min_n_by() 函数
聚合min_n_by()
访问器into_values()
汇总rollup()

百分位数近似函数

Hyperfunction 类型Hyperfunction 名称工具包实验性
tdigest() 函数
聚合tdigest()
访问器approx_percentile()
approx_percentile_rank()
mean()
num_vals()
汇总rollup()
uddsketch() 函数
聚合uddsketch()
访问器approx_percentile()
approx_percentile_array()
approx_percentile_rank()
error()
mean()
num_vals()
备选聚合percentile_agg()
汇总rollup()

饱和运算函数

Hyperfunction 类型Hyperfunction 名称工具包实验性
函数saturating_add()
saturating_add_pos()
saturating_mul()
saturating_sub()
saturating_sub_pos()

状态跟踪函数

Hyperfunction 类型Hyperfunction 名称工具包实验性
compact_state_agg() 函数
聚合compact_state_agg()
访问器duration_in()
interpolated_duration_in()
into_values()
汇总rollup()
heartbeat_agg() 函数
聚合heartbeat_agg()
访问器dead_ranges()
downtime()
interpolate()
interpolated_downtime()
interpolated_uptime()
live_at()
live_ranges()
num_gaps()
num_live_ranges()
trim_to()
uptime()
汇总rollup()
state_agg() 函数
聚合state_agg()
访问器duration_in()
interpolated_duration_in()
interpolated_state_periods()
interpolated_state_timeline()
into_values()
state_at()
state_periods()
state_timeline()
汇总rollup()

统计和回归分析函数

Hyperfunction 类型Hyperfunction 名称工具包实验性
stats_agg() (单变量) 函数
聚合stats_agg() (单变量)
访问器average()
kurtosis()
num_vals()
skewness()
stddev()
sum()
variance()
汇总rollup()
rolling()
stats_agg() (双变量) 函数
聚合stats_agg() (双变量)
访问器average_y(), average_x()
corr()
covariance()
determination_coeff()
intercept()
kurtosis_y(), kurtosis_x()
num_vals()
skewness_y(), skewness_x()
slope()
stddev_y(), stddev_x()
sum_y(), sum_x()
variance_y(), variance_x()
x_intercept()
汇总rolling()
rollup()

时间加权计算函数

Hyperfunction 类型Hyperfunction 名称工具包实验性
time_weight() 函数
聚合time_weight()
访问器average()
first_time()
first_val()
integral()
interpolated_average()
interpolated_integral()
last_time()
last_val()
汇总rollup()

通用函数

Hyperfunction 类型Hyperfunction 名称工具包实验性
Buckettime_bucket()
timescaledb_experimental.time_bucket_ng()
一步聚合approximate_row_count()
first()
histogram()
last()
一步操作days_in_month()
month_normalize()

关键词

在此页面上发现问题?报告问题 或 在 GitHub 上编辑此页