Skip to content

Classification should either be static, or not static, not a mix #14

@stanleybak

Description

@stanleybak

Classification.java is currently partially static and partially not static. setLinearMatrix refers to varId and linearMatrix. These variables seem like they should be local to the Classification object, not global singletons (which is what happens when you make them static). Also 'ha' has to be set before using Classification.

This makes the object hard to use, since it's not clear what needs to be setup before I can extract the A matrix (do I need to set the global ha? What about varId?). I think a clean interface would have a simple static method that takes in either just the AutomatonMode, or the flowdynamics map and a list of variables in the desired order.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions