Rev Language Reference


mvVectorElementSwap - Move to swap to elements in a vector

Move that randomly picks a pair of elements in a vector on swaps the two with another.

Usage

mvVectorElementSwap(Real[] x, Bool neighborsOnly, RealPos weight, Probability tuneTarget)

Arguments

x : Real[] (<deterministic> pass by reference)
The variable on which this move operates.
neighborsOnly : Bool (pass by value)
Should we switch only neighbors or two random elements?
Default : TRUE
weight : RealPos (pass by value)
The weight determines the relative frequency with which this move will be attempted. For details, see the description of the 'moveschedule' parameter on the documentation page for 'mcmc()'.
Default : 1
tuneTarget : Probability (pass by value)
The acceptance probability targeted by auto-tuning.
Default : 0.44

See Also