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: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,13 @@ Head to the address it gives you to check if your changes have worked. More info
40
40
41
41
## Release Notes
42
42
43
+
-**3.2.0, February 2018**:
44
+
* Added initial version of [analytics library](http://aquaqanalytics.github.io/TorQ/analyticslib/), a set of functions to aid data manipulation
45
+
* Added optional [dependency checker](http://aquaqanalytics.github.io/TorQ/gettingstarted/#application-dependency) for applications to check if they have minimal TorQ and kdb+ dependencies
46
+
* Added [kdb compression to filealerter](https://github.com/AquaQAnalytics/TorQ/commit/1b048d5e52fa26d537d6c88064b533f376ef08c6). Use case is for compression of tickerplant log files, so log files can be replayed directly rather than having separate uncompress step
47
+
* Added [-onelog command line](http://aquaqanalytics.github.io/TorQ/gettingstarted/#logging) option to write stdout/stderr to same log file
48
+
* Added [file pattern option](http://aquaqanalytics.github.io/TorQ/utilities/#dataloaderq) to data loading utility
49
+
* Bug Fixes
43
50
-**3.1.0, May 2017**:
44
51
* added kafka which is a real time messaging system with persistent storage in message logs
45
52
* added datareplay.q with functionality for generating tickerplant function calls from historical data which can be executed by subscriber functions
Copy file name to clipboardExpand all lines: docs/analyticslib.md
+14-26Lines changed: 14 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ All functions contain usage examples, as well as an explanation on the type and
7
7
8
8
## ffills[]
9
9
10
+
### Usage
10
11
This script contains the utility to dynamically forward fill a given table keyed by given columns.
11
12
Input parameters:
12
13
* Dictionary containing:
@@ -32,15 +33,10 @@ To achieve this functionality a function to forward fill mixed list columns was
32
33
forwardfill:{$[0h=type x;x maxs (til count x)*(0<count each x);fills x]};
33
34
```
34
35
35
-
If the column is a numerical column it passes through the conditional statement and the function fills gets called.
36
-
If the column is a mixed list then a a boolean list is created with 0's at each index in the column where the count 0 is present this is then multiplied by the indexes of each element of the column which is used as
37
-
input to the maxs function, thereby forward filling the column.
38
-
39
-
#### Options
36
+
If the column is a numerical column it passes through the conditional statement and the function fills gets called. If the column is a mixed list then a a boolean list is created with 0's at each index in the column where the count 0 is present this is then multiplied by the indexes of each element of the column which is used as input to the maxs function, thereby forward filling the column.
40
37
41
38
By specifying the `by` condition in the input dictionary the function can forward fill keyed by specific column, for example:
42
39
43
-
Using the following table:
44
40
```
45
41
q)table
46
42
time sym ask bid asize bsize a id
@@ -82,7 +78,6 @@ time sym ask bid asize bsize a id
82
78
83
79
```
84
80
85
-
86
81
By specifying the `keycols` condition in the input dictionary the function can forward fill only specific columns, for example:
87
82
88
83
Using the same data set as before we can create a new input specifying which column we want to forward fill:
@@ -125,8 +120,7 @@ time sym ask bid asize bsize a id
125
120
126
121
```
127
122
128
-
129
-
#### Example:
123
+
### Example
130
124
We have the following table:
131
125
```
132
126
q)table
@@ -177,10 +171,9 @@ time sym ask bid asize bsize a id
The rack utility gives the user the ability to create a rack table
369
358
(the cross product of distinct values at the input).
370
359
371
-
#### Input parameters:
360
+
###Usage
372
361
* table (required) - keyed or unkeyed in-memory table
373
362
* keycols (required) - the columns of the table you want to create the rack from.
374
363
* base (optional) - this is an additional table, against which the rack can be created
@@ -377,12 +366,11 @@ The rack utility gives the user the ability to create a rack table
377
366
* timeseries.interval (optional) - the interval for the time racking
378
367
* timeseries.round (optional) - should rounding be carried out when creating the timeseries
379
368
* fullexpansion (optional, default is 0b) - determines whether the required columns of input table will be expanded themselves or not.
380
-
#### Usage
369
+
381
370
- All the above arguments must be provided in dictionary form.
382
371
- A timeseries is optional but if it is required then start, end, and timeseries must be specified as a dictionary called 'timseries' (round remains optional with a default value of 1b).
383
372
- Keyed tables can be provided, these will be unkeyed by the function and crossed as standard unkeyed tables.
384
373
385
-
386
374
Should full expansion be required the function we use is:
0 commit comments