Class RandomSamplingStreamFilter

    • Field Detail

      • prob

        protected double prob
        Probability
      • random

        protected java.util.Random random
        Random generator
    • Constructor Detail

      • RandomSamplingStreamFilter

        public RandomSamplingStreamFilter​(double prob,
                                          RandomFactory rnd)
        Constructor.
        Parameters:
        prob - Probability
        rnd - Random generator
    • Method Detail

      • data

        public java.lang.Object data​(int rnum)
        Description copied from interface: BundleStreamSource
        Access a particular object and representation.
        Parameters:
        rnum - Representation number
        Returns:
        Contained data