KSLCore
Toggle table of contents
R1.2.7
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
KSLCore
KSLCore
/
ksl.utilities.random.mcmc
/
MetropolisHastingsMV
/
functionRatio
function
Ratio
protected
fun
functionRatio
(
currentX
:
DoubleArray
,
proposedY
:
DoubleArray
)
:
Double
(
source
)
Return
the ratio of f(y)/f(x) for the generation step
Parameters
current
X
the current state
proposed
Y
the proposed state