Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split and merge function for diffnet objects #47

Open
aoliveram opened this issue Nov 15, 2024 · 0 comments
Open

Split and merge function for diffnet objects #47

aoliveram opened this issue Nov 15, 2024 · 0 comments

Comments

@aoliveram
Copy link
Collaborator

aoliveram commented Nov 15, 2024

We need to have a function that allows us doing the following:

obj <- rdiffnet(... multiple behavior ...)

# If we wanted to split it
objs <- split_behaviors(obj) # So then objs is a list of diffnet objects

# We could also go back
obj1 <- combine_behaviors(objs)

# And we should have
obj == obj1 # TRUE

Because this way, instead of having functions doing:

if (multi.behavior) {

} else {

}

We could have them

# Start off by splitting (if it is a single behavior, will return a list
# with a single object
diffnet_list <- split_behaviors(diffnet_object)

# So both single and multiple have the same implementation
for (diffnet in diffnet_list) {
  ...
}
@gvegayon gvegayon changed the title Split and merge function for rdiffnet Split and merge function for diffnet objects Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant