ckchmod / rbn-matlab

Random Boolean Networks
0 stars 1 forks source link

Thoughts on moving public functions to a different class/.m ? #14

Open ckchmod opened 7 years ago

ckchmod commented 7 years ago

As I'm trying to add more and more support functions to the existing package, I'm beginning to wonder if we should just move all the support functions to a separate .m file?

For example, support functions like Hamming Distance, Plotting, Adding Mutants, Perturbations could all be on a separate file that includes only the support functions. boolCellGrid.m can just have all the main components (and the private access functions) for creating boolean networks on a grid.

Thoughts?

darthbeeblebrox commented 7 years ago

I think this is a great idea in general, but MATLAB only lets you define one function per file (all others would be local). We could probably do this by making a superclass and letting 'boolCellGrid' inherit those functions though.

ckchmod commented 7 years ago

That's pretty much what I was thinking. Just a class of support functions.