Para1 <- c(0, 0, 0, 2.25, -0.377, -0.29, -0.16)
curveETE(P=Para1, fig.opt=TRUE)
# There is an example that introduces a deformation function in the egg-shape equation
myfun <- function(Par, z){
x <- z[,1]
y <- z[,2]
k1 <- Par[1]
k2 <- Par[2]
y <- y - k1*(y+k2)^2
list(x=x, y=y)
}
deform.op <- curveETE(P=Para1, np=5000, fig.opt=TRUE, deform.fun=myfun, Par=c(0.05, 8))
graphics.off()
Run the code above in your browser using DataLab