RejectionSampler

class RejectionSampler(_sample: () => (Vector[Double], Lazy[Double]), val accept: Vector[Double] => Boolean)

Rejection sampler with a predicate and a state.

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def sample(state: State): (State, (Vector[Double], Double))
@tailrec
final
def sampleVector(n: Int, state: State, res: List[(Vector[Double], Double)]): (State, Vector[(Vector[Double], Double)])
def warmup(n: Int, state: State): State

Concrete fields

val accept: Vector[Double] => Boolean