Skip to content

Commit

Permalink
convert to old style keyword arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
cyianor committed Jan 19, 2024
1 parent fc49ff7 commit 9eca2dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/facrot.jl
Expand Up @@ -500,7 +500,7 @@ function rotate(L::AbstractMatrix,
lsiter::Integer=10,
tol::Real=1.0e-6) where {T<:FactorRotationMethod}
return FactorRotation(
gparotate(L, C; normalizerows, randominit, maxiter, lsiter, ϵ=tol)...
gparotate(L, C; normalizerows=normalizerows, randominit=randominit, maxiter=maxiter, lsiter=lsiter, ϵ=tol)...
)
end

Expand All @@ -517,7 +517,7 @@ function rotate!(M::FactorAnalysis,
maxiter::Integer=1000,
lsiter::Integer=10,
tol::Real=1.0e-6) where {T<:FactorRotationMethod}
FR = rotate(loadings(M), C; normalizerows, randominit, maxiter, lsiter, tol)
FR = rotate(loadings(M), C; normalizerows=normalizerows, randominit=randominit, maxiter=maxiter, lsiter=lsiter, tol=tol)
M.W .= loadings(FR)

return M
Expand All @@ -536,7 +536,7 @@ function rotate!(M::PCA,
maxiter::Integer=1000,
lsiter::Integer=10,
tol::Real=1.0e-6) where {T<:FactorRotationMethod}
FR = rotate(projection(M), C; normalizerows, randominit, maxiter, lsiter, tol)
FR = rotate(projection(M), C; normalizerows=normalizerows, randominit=randominit, maxiter=maxiter, lsiter=lsiter, tol=tol)
M.proj .= loadings(FR)

return M
Expand Down

0 comments on commit 9eca2dc

Please sign in to comment.