vankesteren / ProportionalFitting.jl

Multidimensional iterative proportional fitting in Julia
https://vankesteren.github.io/ProportionalFitting.jl
MIT License
7 stars 0 forks source link

Potential improvement: work with dicts #6

Open vankesteren opened 2 years ago

vankesteren commented 2 years ago

ArrayMargins, ArrayFactors are currently objects with two slots:

this is pretty similar to just having a dictionary (with some extra sauce). Potentially, dictionaries are the nicer data structure here?

struct ArrayFactors{T} <: AbstractDict{K,V} where K = Vector{Vector{Int}} where V = Vector{<:AbstractArray{T}}

look here: https://github.com/JuliaLang/julia/blob/master/base/dict.jl#L57-L79