Object

com.github.jonnylaw.model

Streaming

Related Doc: package model

Permalink

object Streaming

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

Type Members

  1. class ObjectInputStreamWithCustomClassLoader extends ObjectInputStream

    Permalink

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def createDist[A, B](s: Seq[A])(f: (A) ⇒ B): Rand[B]

    Permalink

    Create a distribution from a sequence, possibly utilising a transformation f

    Create a distribution from a sequence, possibly utilising a transformation f

    s

    a sequence of draws from a distribution, possibly from an MCMC runexamples

    f

    a function to transform the draws from the distribution

    returns

    a monadic distribution, Rand, which can be sampled from

  7. def deserialise(bytes: Array[Byte]): Any

    Permalink
  8. def deserialiseFile(file: String): Any

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def monitorStateStream: Flow[MetropState, MetropState, NotUsed]

    Permalink
  16. def monitorStream: Flow[ParamsState, ParamsState, NotUsed]

    Permalink

    Given output from the PMMH algorithm, monitor the acceptance rate online

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. def pilotRun(data: Vector[Data], model: Reader[Parameters, Model], param: Parameters, resample: Resample[State, Id], particles: Vector[Int], repetitions: Int)(implicit mat: Materializer, ec: ExecutionContext): Source[(Int, Double), NotUsed]

    Permalink

    Perform a pilot run for the PMMH algorithm, to determine the number of particles to use in the filter

  21. def pmmhToJson(file: String, initParams: Parameters, filter: (Parameters) ⇒ Future[(LogLikelihood, Vector[StateSpace])], proposal: (Parameters) ⇒ Rand[Parameters], prior: (Parameters) ⇒ LogLikelihood, iters: Int)(implicit ec: ExecutionContext, mat: Materializer, f: JsonFormat[MetropState]): Future[IOResult]

    Permalink
  22. def pmmhToJsonSerial(file: String, initParams: Parameters, filter: (Parameters) ⇒ (LogLikelihood, Vector[StateSpace]), proposal: (Parameters) ⇒ Rand[Parameters], prior: (Parameters) ⇒ LogLikelihood, iters: Int)(implicit mat: Materializer, f: JsonFormat[MetropState]): Future[IOResult]

    Permalink
  23. def readParamPosterior(file: String, burnIn: Int, thin: Int)(implicit f: JsonFormat[ParamsState]): Source[ParamsState, Future[IOResult]]

    Permalink
  24. def readPosterior(file: String, burnIn: Int, thin: Int)(implicit f: JsonFormat[MetropState]): Source[MetropState, Future[IOResult]]

    Permalink

    Read from a JSON file containing the output from a PMMH run

    Read from a JSON file containing the output from a PMMH run

    file

    a string pointing to the JSON file to read

    burnIn

    the number of iterations to drop from the front of the PMMH run

    thin

    keep every thin'th iteration, specify thin = 1 for no thinning

  25. def serialise(value: Any): Array[Byte]

    Permalink
  26. def serialiseToFile(value: Any, file: String)(implicit ec: ExecutionContext): Future[Unit]

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

    Permalink
    Definition Classes
    AnyRef
  28. def thinStream[A](n: Int): Flow[A, A, NotUsed]

    Permalink

    Given a stream, drop all but every nth element

    Given a stream, drop all but every nth element

    n

    the thinning parameter, n = 5 will keep every 5th element

  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 writeStreamToFile(file: String): Sink[String, Future[IOResult]]

    Permalink

    An Akka Sink to write a stream of strings to a file

    An Akka Sink to write a stream of strings to a file

    file

    the path of a file to write to

Inherited from AnyRef

Inherited from Any

Ungrouped