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

Function Sample

docs/tests/v2/es6/js/sanddance.js:91877–91881  ·  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

91875 * @param {number} [params.size=1000] - The maximum number of samples.
91876 */
91877function Sample(params) {
91878 _vegaDataflow.Transform.call(this, [], params);
91879
91880 this.count = 0;
91881}
91882
91883Sample.Definition = {
91884 "type": "Sample",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected