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: docs/basics/glossary.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ The terminology generalizes to values.
48
48
49
49
- The left domain of a matrix `m` is `til count m`.
50
50
- The right domain of a matrix is `til count first m`.
51
-
- The right domains of a list `m` of depth `n` are `1_n{til count first x}\m`.<!-- FIXME Check -->
51
+
- The right domains of a list `m` of depth `n` are `1_til each count each (n-1)first\m`.
52
52
53
53
The single argument of a unary function is sometimes referred to as its _right argument_.
54
54
@@ -431,7 +431,9 @@ Q knows the identity elements of some functions, e.g. `+` (zero), but not others
431
431
## Infix
432
432
433
433
Applying an operator by writing it between its arguments, e.g.
434
-
`2+3` applies `+` to 2 and 3
434
+
`2+3` applies `+` to 2 and 3.
435
+
436
+
The alternative in most cases is to apply an operator prefix, e.g. `+[2;3]`.
435
437
436
438
437
439
## Item, list item
@@ -592,12 +594,16 @@ Files representing a [splayed table](#splayed-table) may also be partitioned.
592
594
593
595
## Postfix
594
596
595
-
Applying an iterator to its argument by writing it to the right, e.g. `+/` applies iterator `/` to `+`. (Not to be confused with projecting an operator on its left argument.)
597
+
Postfix notation is when a function is written to the right of its arguments. Only iterators can be written postfix,
598
+
e.g. `+/` applies iterator `/` to `+`. (Not to be confused with projecting an operator on its left argument,
599
+
e.g. `+[1 2 3]` is a projection of the `+` operator, while `+/[1 2 3]` is a reduction of `+` over the list `1 2 3`.)
596
600
601
+
:fontawesome-solid-book:
602
+
[Iterators](../ref/iterators.md)
597
603
598
604
## Prefix
599
605
600
-
Prefix notation applies a unary value `v` to its argument or indices `x`; i.e. `vx` is equivalent to `v[x]`.
606
+
Prefix notation applies a unary value `v` to its argument or indices `x`; i.e. `v x` is equivalent to `v[x]`.
601
607
602
608
:fontawesome-regular-hand-point-right:
603
609
[Application](application.md)
@@ -820,7 +826,7 @@ A value of rank 1, i.e. a function with 1 argument, or a list of depth ≥1.
820
826
821
827
## Unary operator
822
828
823
-
See **Iterator**.
829
+
An operator with only 1 argument. Iterators are unary operators.
Copy file name to clipboardExpand all lines: docs/wp/disaster-floods/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1257,9 +1257,9 @@ I gratefully acknowledge the Disaster Prevention team at FDL: Piotr Bilinski, Ch
1257
1257
1258
1258
### 1. Kd-tree
1259
1259
1260
-
A kd-tree is used in k-dimensional space to create a tree structure. In the tree each node represents a hyperplane which divides the space into two seperate parts (the left and the right branch) based on a given direction. This direction is associated with a certain axis dimension, with the hyperplane perpendicular to the axis dimension. What is to the left or right of the hyperplane is determined by whether each data point being added to the tree is greater or less than the node value at the splitting dimension. For example, if the splitting dimension of the node is `x`, all data points with a smaller `x` value than the value at the splitting dimension node will be to the left of the hyperplane, while all points equal to or greater than will be in the right subplane.
1260
+
A kd-tree is used in k-dimensional space to create a tree structure. In the tree each node represents a hyperplane which divides the space into two separate parts (the left and the right branch) based on a given direction. This direction is associated with a certain axis dimension, with the hyperplane perpendicular to the axis dimension. What is to the left or right of the hyperplane is determined by whether each data point being added to the tree is greater or less than the node value at the splitting dimension. For example, if the splitting dimension of the node is `x`, all data points with a smaller `x` value than the value at the splitting dimension node will be to the left of the hyperplane, while all points equal to or greater than will be in the right subplane.
1261
1261
1262
-
The tree is used to efficiently find a datapoint’s nearest neighbor, by potentially eleminating a large portion of the dataset using the kd-tree’s properties. This is done by starting at the root and moving down the tree recursively, calculating the distance between each node and the datapoint in question, allowing branches of the dataset to be eliminated based on whether this node-point distance is less than or greater than the curent nearest neighbor distance. This enables rapid lookups for each point in a dataset.
1262
+
The tree is used to efficiently find a datapoint’s nearest neighbor, by potentially eliminating a large portion of the dataset using the kd-tree’s properties. This is done by starting at the root and moving down the tree recursively, calculating the distance between each node and the datapoint in question, allowing branches of the dataset to be eliminated based on whether this node-point distance is less than or greater than the current nearest neighbor distance. This enables rapid lookups for each point in a dataset.
Copy file name to clipboardExpand all lines: docs/wp/hdb-analysis/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -825,4 +825,4 @@ Analysis levels 7 and 8 are the most time consuming, for this reason, the defaul
825
825
Some ideas for improvements:
826
826
827
827
* run `paths`,`dotd` etc once on startup and store the results for lookup rather than regenerating at each step.
828
-
* recovery mode if loading the hdb fails; if there is an issue with the latest partition, the hdb can fail to load. Most of the hdb variables in the `.Q` namespace (.e.g. `.Q.pv`) could be constructed on load error. However, as so much is dependent on the structure of the latest partition, it may be better to leave this to be manually investigated and fixed first.
828
+
* recovery mode if loading the hdb fails; if there is an issue with the latest partition, the hdb can fail to load. Most of the hdb variables in the `.Q` namespace (e.g. `.Q.pv`) could be constructed on load error. However, as so much is dependent on the structure of the latest partition, it may be better to leave this to be manually investigated and fixed first.
0 commit comments