* 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)
| 91875 | * @param {number} [params.size=1000] - The maximum number of samples. |
| 91876 | */ |
| 91877 | function Sample(params) { |
| 91878 | _vegaDataflow.Transform.call(this, [], params); |
| 91879 | |
| 91880 | this.count = 0; |
| 91881 | } |
| 91882 | |
| 91883 | Sample.Definition = { |
| 91884 | "type": "Sample", |
nothing calls this directly
no outgoing calls
no test coverage detected