|
6 | 6 | # under the European Union’s Horizon 2020 research and innovation programme
|
7 | 7 | # (grant agreement No 725899).
|
8 | 8 | ---
|
9 |
| -digest: Container for labelled, multidimensional data |
10 |
| -sc-categries: UGens>FluidManipulation |
| 9 | +digest: A set of data associated with identifiers. |
| 10 | +sc-categories: UGens>FluidManipulation |
11 | 11 | sc-related: Classes/FluidLabelSet, Classes/FluidKDTree, Classes/FluidKNN, Classes/FluidKMeans
|
12 | 12 | see-also:
|
13 | 13 | description: |
|
14 |
| - A container associating labels with multi-dimensional data. FluidDataSet is identified by its name. |
| 14 | + FluidDataSet is a container associating identifiers with data. |
15 | 15 |
|
16 | 16 | parameters:
|
17 | 17 | name:
|
18 | 18 | description: |
|
19 |
| - A symbol with the name of the DataSet. |
| 19 | + Symbol with the name of the DataSet. |
| 20 | +
|
20 | 21 | messages:
|
21 | 22 | addPoint:
|
22 | 23 | description: |
|
23 |
| - Add a new point to the data set. The dimensionality of the DataSet is governed by the size of the first point added. Will report an error if the label already exists, or if the size of the data does not match the dimensionality of the DataSet. |
| 24 | + Add a new point to the data set. The dimensionality of the DataSet is governed by the size of the first point added. Will report an error if the identifier already exists, or if the size of the data does not match the dimensionality of the DataSet. |
24 | 25 | args:
|
25 |
| - - name: label |
| 26 | + - name: identifier |
26 | 27 | description: |
|
27 |
| - A symbol or string with the label for the new point. |
| 28 | + A symbol or string with the identifier for the new point. |
28 | 29 | - name: buffer
|
29 | 30 | description: |
|
30 | 31 | A |buffer| with the new data point.
|
31 | 32 | - name: action
|
32 | 33 | description: |
|
33 |
| - A function to run when the point has been added. |
| 34 | + A function to run when the point has been added. |
| 35 | + |
34 | 36 | updatePoint:
|
35 | 37 | description: |
|
36 |
| - Update an existing label's data. Will report an error if the label doesn't exist, or if the size of the data does not match the given dimensionality of the DataSet. |
| 38 | + Update an existing identifier's data. Will report an error if the identifier doesn't exist, or if the size of the data does not match the given dimensionality of the DataSet. |
37 | 39 | args:
|
| 40 | + - name: identifier |
| 41 | + description: | |
| 42 | + Symbol or string with the identifier for this point. |
| 43 | + - name: buffer |
| 44 | + description: | |
| 45 | + A |buffer| with the new data point. |
| 46 | +
|
38 | 47 | getPoint:
|
39 | 48 | description: |
|
40 |
| - Retrieve a point from the data set into a |buffer|. Will report an error if the label or buffer doesn't exist. |
| 49 | + Retrieve a point from the data set into a |buffer|. Will report an error if the identifier or buffer does not exist. |
41 | 50 | args:
|
| 51 | + - name: identifier |
| 52 | + description: | |
| 53 | + Symbol or string with the identifier for the point to be retrieved. |
| 54 | + - name: buffer |
| 55 | + description: | |
| 56 | + A |buffer| where the associated data will be stored. |
| 57 | +
|
42 | 58 | deletePoint:
|
43 | 59 | description: |
|
44 |
| - Remove a point from the data set. Will report an error if the label doesn't exist. |
| 60 | + Remove a point from the data set. Will report an error if the identifier doesn't exist. |
45 | 61 | args:
|
| 62 | + - name: identifier |
| 63 | + description: | |
| 64 | + Symbol or string with the identifier to be deleted. |
| 65 | +
|
46 | 66 | setPoint:
|
47 | 67 | description: |
|
48 |
| - Set the point: if the label exists, this method behaves like updatePoint; if the label doesn't exist, behaves like addPoint. |
| 68 | + Set the point: if the identifier exists, this method behaves like updatePoint; if the identifier doesn't exist, behaves like addPoint. |
49 | 69 | args:
|
| 70 | + - name: identifier |
| 71 | + description: | |
| 72 | + Symbol or string with the identifier for this point. |
| 73 | + |
| 74 | + - name: buffer |
| 75 | + description: | |
| 76 | + A |buffer| containing the new data for the point. |
| 77 | +
|
50 | 78 | clear:
|
51 | 79 | description: |
|
52 | 80 | Empty the data set.
|
@@ -95,14 +123,14 @@ messages:
|
95 | 123 | A function to run when the point has been added.
|
96 | 124 | merge:
|
97 | 125 | description: |
|
98 |
| - Merge sourceDataSet in the current DataSet. It will update the value of points with the same label if overwrite is set to 1. To add columns instead, see the 'transformJoin' method of FluidDataSetQuery. |
| 126 | + Merge sourceDataSet in the current DataSet. It will update the value of points with the same identifier if overwrite is set to 1. To add columns instead, see the 'transformJoin' method of FluidDataSetQuery. |
99 | 127 | args:
|
100 | 128 | - name: sourceDataSet
|
101 | 129 | description: |
|
102 | 130 | The source DataSet to be merged.
|
103 | 131 | - name: overwrite
|
104 | 132 | description: |
|
105 |
| - A flag to allow overwrite points with the same label. |
| 133 | + A flag to allow overwrite points with the same identifier. |
106 | 134 | - name: action
|
107 | 135 | description: |
|
108 | 136 | A function to run when the merge has happened.
|
|
0 commit comments