com.cra.figaro.algorithm

sampling

package sampling

Visibility
  1. Public
  2. All

Type Members

  1. class AnytimeElementSampler extends ElementSampler with AnytimeProbQuerySampler

    Anytime Element sampler.

  2. trait AnytimeMPESampler extends AnytimeSampler with AnytimeMPE

    Anytime sampling algorithms that compute MPE.

  3. class AnytimeMetropolisHastings extends MetropolisHastings with AnytimeProbQuerySampler

    Anytime Metropolis-Hastings sampler.

  4. class AnytimeMetropolisHastingsAnnealer extends MetropolisHastingsAnnealer with AnytimeMPESampler

    Anytime Metropolis-Hastings annealer.

  5. trait AnytimeProbEvidenceSampler extends AnytimeSampler with AnytimeProbEvidence

    Anytime sampling algorithms that compute probability of evidence.

  6. trait AnytimeProbQuerySampler extends AnytimeProbQuery with AnytimeSampler

    Anytime sampling algorithms that compute conditional probability of query elements.

  7. trait AnytimeSampler extends Algorithm with Anytime with Sampler

    Anytime sampling algorithms.

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

    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.

  9. abstract class ElementSampler extends UnweightedSampler

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

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

    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

  11. abstract class Importance extends WeightedSampler

    Importance samplers.

  12. abstract class MetropolisHastings extends UnweightedSampler

    Metropolis-Hastings samplers.

  13. abstract class MetropolisHastingsAnnealer extends UnweightedAnnealer

    Metropolis-Hastings based Annealer.

  14. class OneTimeElementSampler extends ElementSampler with OneTimeProbQuerySampler

    One-time Element sampler.

  15. trait OneTimeMPESampler extends OneTimeSampler with OneTimeMPE

    One-time sampling algorithms that compute probability of evidence.

  16. class OneTimeMetropolisHastings extends MetropolisHastings with OneTimeProbQuerySampler

    One-time Metropolis-Hastings sampler.

  17. class OneTimeMetropolisHastingsAnnealer extends MetropolisHastingsAnnealer with OneTimeMPESampler

    One-time Metropolis-Hastings annealer.

  18. trait OneTimeProbEvidenceSampler extends OneTimeSampler with OneTimeProbEvidence

    One-time sampling algorithms that compute probability of evidence.

  19. trait OneTimeProbQuerySampler extends ProbQueryAlgorithm with OneTimeSampler with OneTimeProbQuery

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

  20. trait OneTimeSampler extends Sampler with OneTime

    One-time sampling algorithms.

  21. abstract class ProbEvidenceSampler extends ProbEvidenceAlgorithm with Sampler

    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.

  22. sealed abstract class ProposalScheme extends AnyRef

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

  23. trait Sampler extends Algorithm

    A trait for sampling algorithms.

  24. class Schedule extends AnyRef

    The schedule class determines the annealing schedule in the annealer.

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

    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.

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

    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.

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

    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.

  28. abstract class UnweightedAnnealer extends MPEAlgorithm with Sampler

    Samplers that use samples without weights.

  29. abstract class UnweightedSampler extends ProbQueryAlgorithm with Sampler

    Samplers that use samples without weights.

  30. abstract class WeightedSampler extends ProbQueryAlgorithm with Sampler

    Samplers that use weighted samples.

Value Members

  1. object ElementSampler

  2. object EmptyProposalScheme extends RuntimeException

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

  3. object Forward

    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

  5. object MetropolisHastings

  6. object MetropolisHastingsAnnealer

  7. object ProbEvidenceSampler

  8. object ProposalScheme

  9. object Schedule

Ungrouped