Class RandomSeq

java.lang.Object
clojure.lang.Obj
clojure.lang.ASeq
clojure.core.matrix.random.RandomSeq
All Implemented Interfaces:
clojure.lang.IHashEq, clojure.lang.IMeta, clojure.lang.IObj, clojure.lang.IPersistentCollection, clojure.lang.ISeq, clojure.lang.Seqable, clojure.lang.Sequential, Serializable, Iterable, Collection, List

public class RandomSeq extends clojure.lang.ASeq
A Clojure sequence implementation that implements a sequence of random numbers
Author:
Mike
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    RandomSeq(Random random)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    clojure.lang.IPersistentCollection
     
     
    clojure.lang.ISeq
     
    static double[]
    produce(Random random, int count)
     
    clojure.lang.Obj
    withMeta(clojure.lang.IPersistentMap meta)
     

    Methods inherited from class clojure.lang.ASeq

    add, add, addAll, addAll, clear, cons, contains, containsAll, equals, equiv, get, hashCode, hasheq, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, more, remove, remove, removeAll, retainAll, seq, set, size, subList, toArray, toArray, toString

    Methods inherited from class clojure.lang.Obj

    meta

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    parallelStream, removeIf, stream, toArray

    Methods inherited from interface java.lang.Iterable

    forEach

    Methods inherited from interface java.util.List

    replaceAll, sort, spliterator
  • Constructor Details

    • RandomSeq

      public RandomSeq(Random random)
  • Method Details

    • produce

      public static double[] produce(Random random, int count)
    • count

      public int count()
      Specified by:
      count in interface clojure.lang.IPersistentCollection
      Overrides:
      count in class clojure.lang.ASeq
    • empty

      public clojure.lang.IPersistentCollection empty()
      Specified by:
      empty in interface clojure.lang.IPersistentCollection
      Overrides:
      empty in class clojure.lang.ASeq
    • first

      public Object first()
    • next

      public clojure.lang.ISeq next()
    • withMeta

      public clojure.lang.Obj withMeta(clojure.lang.IPersistentMap meta)
      Specified by:
      withMeta in interface clojure.lang.IObj
      Specified by:
      withMeta in class clojure.lang.Obj