MHCombinedProposal

scalismo.sampling.proposals.MHCombinedProposal
See theMHCombinedProposal companion object
class MHCombinedProposal[A](val proposals: Seq[MHProposalGenerator[A]]) extends MHProposalGenerator[A]

Container for multiple ProposalGenerators stacked together, applied one after the other. It serves the same purpose as CombinedProposal, but is made to work together with the MHSample. In particular, it creates a generatedBy String, which references the name of all the proposals that are combined.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def logTransitionProbability(from: MHSample[A], to: MHSample[A]): Double

transition from to

transition from to

Attributes

Definition Classes
override def propose(current: MHSample[A]): MHSample[A]

draw a sample from this proposal distribution, may depend on current state

draw a sample from this proposal distribution, may depend on current state

Attributes

Definition Classes

Inherited methods

def forType[T](implicit conversion: ParameterConversion[A, T]): MHProposalGenerator[T]

Applies a parameter conversion of the sampled type. With this mechanism it is, for example possible to derive a generator for a Type T (e.g. ShapeParameters) from a generator that samples only DenseVectors.

Applies a parameter conversion of the sampled type. With this mechanism it is, for example possible to derive a generator for a Type T (e.g. ShapeParameters) from a generator that samples only DenseVectors.

Attributes

Inherited from:
MHProposalGenerator
override def logTransitionRatio(from: MHSample[A], to: MHSample[A]): Double

transition ratio forward probability / backward probability

transition ratio forward probability / backward probability

Attributes

Definition Classes
Inherited from:
TransitionProbability
def relabel(generatedBy: String): MHProposalGenerator[A]

returns a new ProposalGenerator, with a new label. This is useful to summarize complicated labels in composed proposal generators

returns a new ProposalGenerator, with a new label. This is useful to summarize complicated labels in composed proposal generators

Attributes

Inherited from:
MHProposalGenerator