Skip to content

Commit 77f06a8

Browse files
committed
update smooth.morph.R
1 parent 619479c commit 77f06a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

R/smooth.morph.R

+3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ smooth.morph <- function(x, y, ylim, WfdPar,
9898

9999
cvec <- Wfdobj$coef # initial coefficients
100100
Zmat <- fda::zerobasis(length(cvec))
101+
# print(dim(Zmat))
102+
# print(dim(cvec))
101103
bvec <- t(Zmat) %*% cvec
102104
cvec <- Zmat %*% bvec
103105

@@ -270,6 +272,7 @@ fngrad_morph <- function(bvec, morphList, Zmat) {
270272
# vertically over target interval
271273
h <- (ylim[1] - hmin) + hraw*(ywidth/hwidth)
272274
# compute least squares fitting criterion
275+
# print(c(dim(y),dim(h)))
273276
res <- y - h
274277
f <- mean(res^2*wt)
275278
# -----------------------------------------------------

0 commit comments

Comments
 (0)