APL (Dyalog Unicode), (削除) 20 (削除ここまで) 18 bytes SBCS
-2 thanks to Bubbler.
Anonymous tacit prefix function. Returns list of Progressive MeanTM, Standard Mean, Trend.
(2÷⍨+)⌿∘⌽(,,-)+⌿÷≢
This consists of three parts: (2÷⍨+)⌿∘⌽ (,,-) +⌿÷≢
+⌿ ÷ ≢ is the sum divided by the count
(...)⌿∘⌽ reverses the list and then reduces from right to left using the function:
2÷⍨+ add next value to previous value and divide two by that by two
(,,-) is the concatenation of the PM and the SM, concatenated to their difference
APL (Dyalog Unicode), (削除) 20 (削除ここまで) 18 bytes SBCS
-2 thanks to Bubbler.
Anonymous tacit prefix function. Returns list of Progressive MeanTM, Standard Mean, Trend.
(2÷⍨+)⌿∘⌽(,,-)+⌿÷≢
This consists of three parts: (2÷⍨+)⌿∘⌽ (,,-) +⌿÷≢
+⌿ ÷ ≢ is the sum divided by the count
(...)⌿∘⌽ reverses the list and then reduces from right to left using the function:
2÷⍨+ add next value to previous value and divide two by that
(,,-) is the concatenation of the PM and the SM, concatenated to their difference
APL (Dyalog Unicode), (削除) 20 (削除ここまで) 18 bytes SBCS
-2 thanks to Bubbler.
Anonymous tacit prefix function. Returns list of Progressive MeanTM, Standard Mean, Trend.
(2÷⍨+)⌿∘⌽(,,-)+⌿÷≢
This consists of three parts: (2÷⍨+)⌿∘⌽ (,,-) +⌿÷≢
+⌿ ÷ ≢ is the sum divided by the count
(...)⌿∘⌽ reverses the list and then reduces from right to left using the function:
2÷⍨+ add next value to previous value and divide that by two
(,,-) is the concatenation of the PM and the SM, concatenated to their difference
APL (Dyalog Unicode), (削除) 20 (削除ここまで) 18 bytes SBCS
-2 thanks to Bubbler.
Anonymous tacit prefix function. Returns list of Progressive MeanTM, Standard Mean, Trend.
(2÷⍨+)⌿∘⌽(,,-)+⌿÷≢
This consists of three parts: (2÷⍨+)⌿∘⌽(,,-)+⌿÷≢
+⌿ ÷ ≢ is the sum divided by the count
(...)⌿∘⌽ reverses the list and then reduces from right to left using the function:2÷⍨+ add next value to previous value and divide two by that
(,,-) is the concatenation of the PM and the SM, concatenated to their difference
APL (Dyalog Unicode), (削除) 20 (削除ここまで) 18 bytes SBCS
-2 thanks to Bubbler.
Anonymous tacit prefix function. Returns list of Progressive MeanTM, Standard Mean, Trend.
(2÷⍨+)⌿∘⌽(,,-)+⌿÷≢
APL (Dyalog Unicode), (削除) 20 (削除ここまで) 18 bytes SBCS
-2 thanks to Bubbler.
Anonymous tacit prefix function. Returns list of Progressive MeanTM, Standard Mean, Trend.
(2÷⍨+)⌿∘⌽(,,-)+⌿÷≢
This consists of three parts: (2÷⍨+)⌿∘⌽(,,-)+⌿÷≢
+⌿ ÷ ≢ is the sum divided by the count
(...)⌿∘⌽ reverses the list and then reduces from right to left using the function:2÷⍨+ add next value to previous value and divide two by that
(,,-) is the concatenation of the PM and the SM, concatenated to their difference
APL (Dyalog Unicode), 20 (削除) 20 (削除ここまで) 18 bytes SBCS
-2 thanks to Bubbler.
Anonymous tacit prefix function. Returns list of Progressive MeanTM, Standard Mean, Trend.
(2÷⍨+)⌿∘⌽(⊣,-,⊢-)+⌿÷≢
APL (Dyalog Unicode), (削除) 20 (削除ここまで) 18 bytes SBCS
-2 thanks to Bubbler.
Anonymous tacit prefix function. Returns list of Progressive MeanTM, Standard Mean, Trend.
(2÷⍨+)⌿∘⌽(,,-)+⌿÷≢