pmc.js
/*
* New returns a PMC Sketch with the properties:
* l = total number of bits for sketch
* m = total number of rows for each flow
* w = total number of columns for each flow
*/
New returns a PMC Sketch with the properties:
l = total number of bits for sketch
m = total number of rows for each flow
w = total number of columns for each flow
New returns a PMC Sketch with the properties : l = total number of bits for sketch m = total number of rows for each flow w = total number of columns for each flow
function newSketch(l, m, w) {
	if (l == 0) {
		throw new Error("Expected l > 0, got 0");
	}
	if (m == 0) {
		throw new Error("Expected m > 0, got 0");
	}
	if (w == 0) {
		throw new Error("Expected w > 0, got 0");
	}
	return new Sketch(l, m, w, new Array(Math.floor(l)));
}
function newSketch ( l , m , w ) { if ( l == 0 ) { throw new Error ( "Expected l > 0, got 0" ) ; } if ( m == 0 ) { throw new Error ( "Expected m > 0, got 0" ) ; } if ( w == 0 ) { throw new Error ( "Expected w > 0, got 0" ) ; } return new Sketch ( l , m , w , new Array ( Math . floor ( l ) ) ) ; }
New returns a PMC Sketch with the properties:
l = total number of bits for sketch
m = total number of rows for each flow
w = total number of columns for each flow
New returns a PMC Sketch with the properties : l = total number of bits for sketch m = total number of rows for each flow w = total number of columns for each flow