Documentation of 'org.matheclipse.core.generic.combinatoric.KSubsetsIterable' Java class
KSubsetsIterable
org.matheclipse.core.generic.combinatoric

Class KSubsetsIterable

  • All Implemented Interfaces:
    java.lang.Iterable<int[]>, java.util.Iterator<int[]>


    public class KSubsetsIterable
    extends java.lang.Object
    implements java.util.Iterator<int[]>, java.lang.Iterable<int[]>
    Iterable for all k-combinations from a set See Combination
    • Constructor Summary

      Constructors 
      Constructor and Description
      KSubsetsIterable(int len, int parts) 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static long binomial(long n, long k) 
      boolean hasNext() 
      java.util.Iterator<int[]> iterator() 
      int[] next() 
      void remove() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • KSubsetsIterable

        public KSubsetsIterable(int len,
                                int parts)
    • Method Detail

      • next

        public int[] next()
        Specified by:
        next in interface java.util.Iterator<int[]>
      • binomial

        public static long binomial(long n,
                                    long k)
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<int[]>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<int[]>
      • iterator

        public java.util.Iterator<int[]> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<int[]>

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.