step2D: "step2D" MCMC sampling function: Accept new point with...

View source: R/step2D.R

step2DR Documentation

"step2D" MCMC sampling function: Accept new point with probability alpha

Description

2D landmark data(Gaussian likelihood with Isotropic Error Variance) Accepts new parameter 5*1 point with probability alpha

Usage

step2D(t, tune, myData, choice)

Arguments

t

An array containing 5*1 parameters

tune

array containing 5*1 tuning value

myData

3D array containing 2 dimensional landmark

choice

Which to compare with 1st object or mean obj

Details

"c1","c2" = Location parameter "b" = dilation parameter "theta" =Rotation angle "Sigma" = Isotropic error variation parameter

Value

Returns the 5*1 parameter point

Examples

## Not run: 
require(shapes)
data(apes)
myData = apes$x
tt=rep(1,5)
for(i in 1:3){
s=step2D(tt,rep(0.1,5),myData,10)
print(s)
tt=purturb2D(tt, rep(0.1,5))
}

## End(Not run)

debashischatterjee111/BPviGM1 documentation built on April 8, 2023, 7:28 p.m.