You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OPERATORS.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Elvers Operator Reference
2
2
3
-
79 operators. All accept and return `Factor`.
3
+
72 operators. All accept and return `Factor`.
4
4
5
5
---
6
6
@@ -50,9 +50,9 @@ Negation: `-x`.
50
50
51
51
Remaps group labels to consecutive integers `0..(n-1)` per timestamp. Dense rank (ties get same value).
52
52
53
-
### `bucket(x, n)`
53
+
### `bucket(x, buckets=None, range_params=None)`
54
54
55
-
Assigns values to `n` equal-frequency buckets by cross-sectional rank. Returns integer labels. Null in, null out.
55
+
Assigns values to bucket indices based on edge boundaries. Provide either `buckets` (list of edges) or `range_params` (start, end, step). Returns integer labels. Null in, null out.
56
56
57
57
---
58
58
@@ -213,9 +213,9 @@ Rolling OLS regression.
213
213
214
214
Zero guard on `sum(x^2) < 1e-10` and `SST < 1e-10`.
215
215
216
-
### `trade_when(cond, x, exit_value=-1.79e308)`
216
+
### `trade_when(trigger, alpha, exit_cond)`
217
217
218
-
Hold `x` when `cond` is true, forward-fill otherwise. Sentinel-based exit.
218
+
Hold `alpha` when `trigger > 0`, null when `exit_cond > 0`, forward-fill otherwise. All three parameters are Factors.
219
219
220
220
---
221
221
@@ -241,9 +241,9 @@ Cross-sectional mean, broadcast to all symbols.
0 commit comments