Object/Trait

com.github.jonnylaw.model

State

Related Docs: trait State | package model

Permalink

object State

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. State
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addStates(s1: State, s2: State): State

    Permalink

    Add two states with the same structure, used in weighted mean

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def combine(state1: State, state2: State): State

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def flatten(s: State): Vector[Double]

    Permalink
  12. def getAllCredibleIntervals(s: Seq[State], interval: Double): IndexedSeq[CredibleInterval]

    Permalink

    Use getCredibleInterval to get all credible intervals of a state

    Use getCredibleInterval to get all credible intervals of a state

    s

    a vector of states

    interval

    the interval for the probability interval between [0,1]

    returns

    a sequence of tuples, (lower, upper) corresponding to each state reading

  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getCredibleInterval(s: Seq[State], n: Int, interval: Double): IndexedSeq[CredibleInterval]

    Permalink

    Get the credible intervals of the nth state vector

    Get the credible intervals of the nth state vector

    s

    a State

    n

    a reference to a node of state tree, counting from 0 on the left

    interval

    the probability interval size

    returns

    a tuple of doubles, (lower, upper)

  15. def getCredibleIntervals(x0: Rand[State], interval: Double): IndexedSeq[CredibleInterval]

    Permalink

    Given a distribution over State, calculate credible intervals by repeatedly drawing from the distribution and ordering the samples

  16. def getState(s: State, n: Int): LeafState

    Permalink

    Get the node element at position n from the left, indexed from 0

    Get the node element at position n from the left, indexed from 0

    n

    the node position from the left

  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. def head(s: State): Double

    Permalink
  19. def isEmpty(state: State): Boolean

    Permalink

    Determines if a state contains

  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def map(s: State)(f: (DenseVector[Double]) ⇒ DenseVector[Double]): State

    Permalink

    Maps all the values contained inside of all leaf nodes

    Maps all the values contained inside of all leaf nodes

    s

    a given tree of states

    f

    a function from a vector to a vector, usually defined using map, eg. x => x map (_ + 1)

    returns

    the state in the same structure only changed by the provided f

  22. def meanState(x: Seq[State]): State

    Permalink

    Calculate the mean of a state

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. implicit def stateMonoid: Monoid[State]

    Permalink
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toList(s: State): List[DenseVector[Double]]

    Permalink
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def weightedMean(x: Seq[State], w: Vector[Double]): State

    Permalink

    Calculate the weighted mean of a list of States

    Calculate the weighted mean of a list of States

    x

    a list of States

    w

    their associated weights

    returns

    the weighted mean

  34. def weightedMean2(x: Seq[State], w: Vector[Double]): State

    Permalink
  35. val zero: State

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped