Detect significance trend from a sequence of composite scores over time.
Computes the average signed change per step to determine whether
significance is increasing, decreasing, or stable. At least 2 data points
are required; for 1 or 0, the trend is 'stable' with 'low' confidence.
Confidence is calibrated by data volume:
≥ 5 data points → high
3–4 data points → medium
< 3 data points → low
A trend is considered 'stable' when |averageChange| ≤ 0.1.
Parameters
scores: readonlynumber[]
Ordered sequence of composite scores (oldest → newest)
Detect significance trend from a sequence of composite scores over time.
Computes the average signed change per step to determine whether significance is increasing, decreasing, or stable. At least 2 data points are required; for 1 or 0, the trend is 'stable' with 'low' confidence.
Confidence is calibrated by data volume:
A trend is considered 'stable' when |averageChange| ≤ 0.1.