public UpdatableSketchBuilder < U , S > setSamplingProbability ( final float samplingProbability ) { if ( ( samplingProbability < 0 ) || ( samplingProbability > 1f ) ) { throw new SketchesArgumentException ( "sampling probability must be between 0 and 1" ) ; } samplingProbability_ = samplingProbability ; return this ; }
This is to set sampling probability . Default probability is 1 .