Class PairSampleIterator

    • Field Detail

      • positiveProportion

        protected double positiveProportion
      • numberSamples

        protected int numberSamples
      • positiveTarget

        protected int positiveTarget
      • positiveCount

        protected int positiveCount
      • totalCount

        protected int totalCount
      • nonsingletonClusters

        protected int[] nonsingletonClusters
    • Constructor Detail

      • PairSampleIterator

        public PairSampleIterator​(Clustering clustering,
                                  Randoms random,
                                  double positiveProportion,
                                  int numberSamples)
        clustering - True clustering.
        random - Source of randomness.
        positiveProportion - Proportion of Instances that should be positive examples.
        numberSamples - Total number of samples to generate.
    • Method Detail

      • hasNext

        public boolean hasNext()