* Samples tuples passing through this operator. * Uses reservoir sampling to maintain a representative sample. * @constructor * @param {object} params - The parameters for this operator. * @param {number} [params.size=1000] - The maximum number of samples.
(params)
| 118399 | * @param {object} params - The parameters for this operator. |
| 118400 | * @param {number} [params.size=1000] - The maximum number of samples. |
| 118401 | */ function Sample(params) { |
| 118402 | (0, _vegaDataflow.Transform).call(this, [], params); |
| 118403 | this.count = 0; |
| 118404 | } |
| 118405 | Sample.Definition = { |
| 118406 | "type": "Sample", |
| 118407 | "metadata": {}, |
nothing calls this directly
no outgoing calls
no test coverage detected