Package

com.cra.figaro.algorithm

sampling

Permalink

package sampling

Visibility
  1. Public
  2. All

Type Members

  1. class AnytimeElementSampler extends ElementSampler with UnweightedSampler with AnytimeProbQuerySampler

    Permalink

    Anytime Element sampler.

  2. trait AnytimeMPESampler extends AnytimeSampler with AnytimeMPE

    Permalink

    Anytime sampling algorithms that compute MPE.

  3. class AnytimeMetropolisHastings extends MetropolisHastings with UnweightedSampler with AnytimeProbQuerySampler

    Permalink

    Anytime Metropolis-Hastings sampler.

  4. class AnytimeMetropolisHastingsAnnealer extends MetropolisHastingsAnnealer with AnytimeMPESampler

    Permalink

    Anytime Metropolis-Hastings annealer.

  5. trait AnytimeProbEvidenceSampler extends AnytimeSampler with AnytimeProbEvidence

    Permalink

    Anytime sampling algorithms that compute probability of evidence.

  6. trait AnytimeProbQuerySampler extends AnytimeProbQuery with AnytimeSampler

    Permalink

    Anytime sampling algorithms that compute conditional probability of query elements.

  7. trait AnytimeSampler extends Algorithm with Anytime with Sampler

    Permalink

    Anytime sampling algorithms.

  8. trait BaseProbQuerySampler[U[_]] extends BaseProbQueryAlgorithm[U]

    Permalink

    A base trait for sampling algorithms that compute conditional probabilities of queries, and that use the projection of all the samples of a target variable to calculate the distribution of that variable or the expectation of a function on that variable.

    A base trait for sampling algorithms that compute conditional probabilities of queries, and that use the projection of all the samples of a target variable to calculate the distribution of that variable or the expectation of a function on that variable. Generic type U is either Element or Reference.

  9. abstract class BaseUnweightedSampler extends Sampler

    Permalink

    Samplers that use samples without weights.

  10. case class DisjointScheme(choices: (Double, () ⇒ ProposalScheme)*) extends ProposalScheme with Product with Serializable

    Permalink

    A proposal scheme that chooses between different proposal schemes, each with a probability.

    A proposal scheme that chooses between different proposal schemes, each with a probability.

    choices

    A variable list of pairs of probabilities and proposal schemes.

  11. abstract class ElementSampler extends BaseUnweightedSampler

    Permalink

    An abstract class to generates samples from the marginal distribution of an element.

  12. case class FinalScheme(element: () ⇒ Element[_]) extends ProposalScheme with Product with Serializable

    Permalink

    A proposal scheme that consists of proposing a single element.

    A proposal scheme that consists of proposing a single element.

    element

    The element to propose

  13. class ForwardWeighter extends LikelihoodWeighter

    Permalink
  14. abstract class Importance extends WeightedSampler

    Permalink

    Importance samplers.

  15. class LikelihoodWeighter extends AnyRef

    Permalink

    A class that implements sampling via likelihood weighting on a set of elements.

  16. abstract class MetropolisHastings extends BaseUnweightedSampler

    Permalink

    Metropolis-Hastings samplers.

  17. abstract class MetropolisHastingsAnnealer extends MetropolisHastings with MPEAlgorithm

    Permalink

    Metropolis-Hastings based Annealer.

  18. class OneTimeElementSampler extends ElementSampler with UnweightedSampler with OneTimeProbQuerySampler

    Permalink

    One-time Element sampler.

  19. trait OneTimeMPESampler extends OneTimeSampler with OneTimeMPE

    Permalink

    One-time sampling algorithms that compute probability of evidence.

  20. class OneTimeMetropolisHastings extends MetropolisHastings with UnweightedSampler with OneTimeProbQuerySampler

    Permalink

    One-time Metropolis-Hastings sampler.

  21. class OneTimeMetropolisHastingsAnnealer extends MetropolisHastingsAnnealer with OneTimeMPESampler

    Permalink

    One-time Metropolis-Hastings annealer.

  22. trait OneTimeProbEvidenceSampler extends OneTimeSampler with OneTimeProbEvidence

    Permalink

    One-time sampling algorithms that compute probability of evidence.

  23. trait OneTimeProbQuerySampler extends ProbQueryAlgorithm with OneTimeSampler with OneTimeProbQuery

    Permalink

    One-time sampling algorithms that compute conditional probability of query elements.

  24. trait OneTimeSampler extends Sampler with OneTime

    Permalink

    One-time sampling algorithms.

  25. abstract class ProbEvidenceSampler extends ProbEvidenceAlgorithm with Sampler

    Permalink

    Algorithm that computes probability of evidence using forward sampling.

    Algorithm that computes probability of evidence using forward sampling. The evidence is specified as NamedEvidence. Only the probability of this evidence is computed. Conditions and constraints that are already on elements are considered part of the definition of the model.

  26. trait ProbQuerySampler extends BaseProbQuerySampler[Element]

    Permalink

    Sampling algorithms that compute conditional probabilities of queries on elements, and that use the projection of all the samples of a target variable to calculate the distribution of that variable or the expectation of a function on that variable.

  27. sealed abstract class ProposalScheme extends AnyRef

    Permalink

    Class that describes proposal schemes used in Metropolis-Hastings algorithms.

  28. trait Sampler extends Algorithm

    Permalink

    A trait for sampling algorithms.

  29. class Schedule extends AnyRef

    Permalink

    The schedule class determines the annealing schedule in the annealer.

  30. case class SwitchScheme[T, U](firstElems: () ⇒ (Element[T], Element[U]), rest: Option[ProposalScheme]) extends ProposalScheme with Product with Serializable

    Permalink

    Proposes switching the randomness of two elements and optionally continues with another proposal scheme.

    Proposes switching the randomness of two elements and optionally continues with another proposal scheme.

    firstElems

    The two elements whose randomness is switched.

    rest

    The optional proposal scheme.

  31. case class TypedScheme[T](first: () ⇒ Element[T], rest: (T) ⇒ Option[ProposalScheme]) extends ProposalScheme with Product with Serializable

    Permalink

    A proposal scheme that proposes a first element and optionally continues with another proposal scheme based on the value of the first element.

    A proposal scheme that proposes a first element and optionally continues with another proposal scheme based on the value of the first element.

    first

    The first element to propose.

    rest

    An optional proposal scheme that is invoked conditioned on the value of the first element.

  32. case class UntypedScheme(first: () ⇒ Element[_], rest: Option[ProposalScheme]) extends ProposalScheme with Product with Serializable

    Permalink

    A proposal scheme that proposes a first element and optionally continues with another proposal scheme.

    A proposal scheme that proposes a first element and optionally continues with another proposal scheme.

    first

    The first element to propose.

    rest

    An optional proposal scheme that is invoked after the first element is proposed.

  33. trait UnweightedSampler extends BaseUnweightedSampler with ProbQuerySampler

    Permalink
  34. abstract class WeightedSampler extends ProbQuerySampler with Sampler

    Permalink

    Samplers that use weighted samples.

Value Members

  1. object ElementSampler

    Permalink
  2. object EmptyProposalScheme extends RuntimeException

    Permalink

    Exception thrown when attempting to create a proposal scheme with no steps.

  3. object Forward

    Permalink

    A forward sampler that generates a state by generating values for elements, making sure to generate all the arguments of an element before the element.

  4. object Importance

    Permalink
  5. object MetropolisHastings

    Permalink
  6. object MetropolisHastingsAnnealer

    Permalink
  7. object ProbEvidenceSampler

    Permalink
  8. object ProposalScheme

    Permalink
  9. object Schedule

    Permalink
  10. package parallel

    Permalink

Ungrouped