← Back to home
Comparison · Analytics

tglkmeans vs trendseries

A side-by-side editorial comparison of tglkmeans and trendseries — release velocity, themes, recent moves, and the top alternatives to consider.

Shared themes:r-package

tglkmeans vs trendseries: at a glance

Featuretglkmeanstrendseries
SectorAnalyticsAnalytics
Velocity score0.03.8
Sparks · 30d01
Top themesr-package, clustering, missing-data, correctnesstime-series, econometrics, r-package, seasonal-decomposition
Last editorial update1h ago2h ago
WebsiteVisit →Visit →

What is tglkmeans?

A k-means implementation that just told users their Spearman clustering on missing data was wrong

tglkmeans is a multi-core k-means implementation with seeding, aimed at single-cell and other large matrix workloads. Version 0.4.0 flipped the id_column default and moved to R's random number generator, 0.5.x added count-matrix downsampling and fixed id handling, and 0.6.3 in May 2026 is a correctness release: Spearman distance was ranking missing values as the largest value instead of dropping them, and predict_tgl_kmeans() with Euclidean distance did not reproduce the training metric when a cluster center had a missing dimension.

Read the full tglkmeans trajectory →

What is trendseries?

A trend-extraction toolkit grows a full decomposition engine, seasonal components and all.

trendseries extracts trends from economic time series through two pipe-friendly functions, backed by an unusually broad method set — Hodrick-Prescott in one- and two-sided variants, Baxter-King, Christiano-Fitzgerald, Hamilton regression, Beveridge-Nelson, unobserved components, plus the moving average and smoothing family. The 1.4 release adds decomposition proper: an exported decompose_series() that splits a series into trend, seasonal, and remainder across five methods and guarantees the components add back to the original values.

Read the full trendseries trajectory →

tglkmeans vs trendseries: editorial side-by-side

T
tglkmeans
ANALYTICS
0.0

A k-means implementation that just told users their Spearman clustering on missing data was wrong

◆ Current state

tglkmeans is a multi-core k-means implementation with seeding, aimed at single-cell and other large matrix workloads. Version 0.4.0 flipped the id_column default and moved to R's random number generator, 0.5.x added count-matrix downsampling and fixed id handling, and 0.6.3 in May 2026 is a correctness release: Spearman distance was ranking missing values as the largest value instead of dropping them, and predict_tgl_kmeans() with Euclidean distance did not reproduce the training metric when a cluster center had a missing dimension.

◆ Where it's heading

The package handles missing data across three distance metrics, and 0.6.3 shows those paths had drifted apart — Spearman behaved unlike Euclidean and Pearson, and prediction behaved unlike training. Both fixes change results on affected data, and the release notes are careful to bound exactly where: Spearman on data with NAs changes, complete data does not. Performance work runs alongside, with the dense per-thread vote matrix removed from the reassignment step.

◆ Prediction

With the metric paths now aligned on missing-value handling, further work is more likely to target the parallel reassignment internals than the distance semantics.

T
trendseries
ANALYTICS
3.8

A trend-extraction toolkit grows a full decomposition engine, seasonal components and all.

◆ Current state

trendseries extracts trends from economic time series through two pipe-friendly functions, backed by an unusually broad method set — Hodrick-Prescott in one- and two-sided variants, Baxter-King, Christiano-Fitzgerald, Hamilton regression, Beveridge-Nelson, unobserved components, plus the moving average and smoothing family. The 1.4 release adds decomposition proper: an exported decompose_series() that splits a series into trend, seasonal, and remainder across five methods and guarantees the components add back to the original values.

◆ Where it's heading

The package is moving from breadth of methods to rigour about what those methods produce. Recent work has been about defaults and guarantees rather than new filters: the unobserved components model now derives its signal-to-noise ratios from Hodrick-Prescott lambdas so the default output is economically interpretable, decomposition carries an exact additive identity, and a log transform gives a uniform multiplicative variant across every method. Naming is being tidied in the same spirit, with group_vars deprecated in favour of group_cols. Side-by-side method comparison — passing several methods and getting each one's components as separate columns — suggests an audience that treats method choice as a research question rather than a setting.

◆ Prediction

Expect the comparison and diagnostic side to keep developing, since the package now produces multiple decompositions of the same series and offers no ranking between them; the entries give no indication of new filters being queued.

Alternatives to tglkmeans and trendseries

Other Analytics products tracked by Sparkpulse, ranked by recent ship velocity. Each card links to a full editorial trajectory and lets you pivot into a head-to-head comparison with either tglkmeans or trendseries.

See all tglkmeans alternatives → · See all trendseries alternatives →

Recent activity from tglkmeans and trendseries

Latest ship moves from both products, interleaved chronologically. ⚡ = editorial spark.

  1. 15d agotrendseriesDecomposition becomes a first-class operation, five methods deep
  2. 2mo agotglkmeansSpearman metric no longer ranks missing values as the largest
  3. 3mo agotrendseriesMulti-column trends and economically grounded UCM defaults
  4. 10mo agotrendseriesFirst production release with 21 trend extraction methods
  5. 2y agotglkmeansFixes corrupted cluster ids and dropped dimnames
  6. 2y agotglkmeansAdds downsample_matrix() for count matrices
  7. 2y agotglkmeansBreaking: id_column defaults to FALSE, switches to R's RNG

Frequently asked questions

What is the difference between tglkmeans and trendseries?

Both compete on the same themes — r-package — within Analytics. trendseries is currently shipping more aggressively (velocity 3.8 vs 0.0), with 1 editorial sparks in the last 30 days against 0. See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is tglkmeans better than trendseries?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. trendseries is currently shipping more aggressively (velocity 3.8 vs 0.0), with 1 editorial sparks in the last 30 days against 0. For your specific use case, the alternatives sections above list other Analytics products to evaluate alongside.

What are the best alternatives to tglkmeans?

Top tglkmeans alternatives in Analytics are ranked by recent ship velocity. Browse the "tglkmeans alternatives" section above for the current picks, or visit /alternatives/tglkmeans for the full list with editorial commentary on each.

What are the best alternatives to trendseries?

Top trendseries alternatives in Analytics are ranked by recent ship velocity. Browse the "trendseries alternatives" section above for the current picks, or visit /alternatives/trendseries for the full list with editorial commentary on each.