Packages

class SamplingRanger[T] extends AtomicRanger[T]

Approximate a distribution by sampling. This takes additional samples at each iteration.

Linear Supertypes
AtomicRanger[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SamplingRanger
  2. AtomicRanger
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SamplingRanger(atomic: Atomic[T], samplesPerIteration: Int = 1)

    atomic

    Atomic to range.

    samplesPerIteration

    Additional samples to take each time discretize() is called. Must be > 0.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val atomic: Atomic[T]
    Definition Classes
    AtomicRanger
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def discretize(): Map[Extended[T], Double]

    Discretize the distribution of this atomic element.

    Discretize the distribution of this atomic element. This possibly mutates the state of this ranger so that future calls return more refined approximations.

    returns

    A discretized distribution for this element, represented as a map from extended values to probabilities such that the sum of the probabilities is 1.0.

    Definition Classes
    SamplingRangerAtomicRanger
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. val fullyRefinable: Boolean
    Definition Classes
    SamplingRangerAtomicRanger
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  18. val samples: Map[T, Int]

    All samples taken so far, stored as a map from a value to the number of times it has been sampled.

    All samples taken so far, stored as a map from a value to the number of times it has been sampled.

    Attributes
    protected
  19. var samplesPerIteration: Int
  20. var samplesTaken: Int

    Number of samples taken so far.

    Number of samples taken so far.

    Attributes
    protected
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AtomicRanger[T]

Inherited from AnyRef

Inherited from Any

Ungrouped