Skip to content

Commit

Permalink
Add information about names/levels to MCA struct
Browse files Browse the repository at this point in the history
  • Loading branch information
kshedden committed Sep 4, 2024
1 parent 87b0bff commit b657e15
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mca.jl
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ mutable struct MCA{T<:Real} <: LinearDimensionalityReduction
# Variable names
vnames::Vector{String}

# Variable+level names
names::NamedTuple

# Map values to integer positions
rd::Vector{Dict}

Expand Down Expand Up @@ -473,7 +476,9 @@ function fit(

una, ben, gra = get_eigs(C.I, J, K)

mca = MCA(C, XI, vnames, rd, dr, K, J, una, ben, gra)
na = expand_names(vnames, dr)

mca = MCA(C, XI, vnames, na, rd, dr, K, J, una, ben, gra)

return mca
end
Expand Down

0 comments on commit b657e15

Please sign in to comment.