MCPcopy Create free account
hub / github.com/microsoft/SandDance / Sample

Function Sample

docs/app/js/sanddance-app.js:118401–118404  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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}
118405Sample.Definition = {
118406 "type": "Sample",
118407 "metadata": {},

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected