Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sepehr78 committed Jul 4, 2024
2 parents 07c6f0b + 93d3792 commit cd93148
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RecursiveCausalDiscovery.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ Recursive Structure Learner (RSL) for learning graph structure.
- `markov_boundary_matrix::BitMatrix`: Matrix indicating whether variable i is in the Markov boundary of j.
- `skip_rem_check_vec::BitVector`: Used to keep track of which variables to skip when checking for removability.
"""
struct RSL{T}
struct RSL{T, F}
data::Matrix{T}
ci_test::Function
ci_test::F
markov_boundary_matrix::BitMatrix
skip_rem_check_vec::BitVector

function RSL(data::Matrix{T}, ci_test::Function) where T
num_vars = size(data, 2)
new{T}(data, ci_test, falses(num_vars, num_vars), falses(num_vars))
new{T, typeof(ci_test)}(data, ci_test, falses(num_vars, num_vars), falses(num_vars))
end
end

Expand Down

0 comments on commit cd93148

Please sign in to comment.