cmu-phil / tetrad

Repository for the Tetrad Project, www.phil.cmu.edu/tetrad.
GNU General Public License v2.0
404 stars 111 forks source link

Consider bringing algorithms under descriptive interfaces. #98

Closed jdramsey closed 8 years ago

jdramsey commented 8 years ago

Hi Joe,

Something I wanted to ask about Tetrad was the existence of interfaces that describe capabilities. For example:

If an algorithm can utilize prior knowledge of arcs interface HandlesPriorArcKnowledge void setPriorKnowledge(Knowledge knowledge)

If an algorithm can use covariance matrices instead of raw data interface UseCovarianceMatrixData void setCovarianceMatrixInput(float[][] covmatrix)

class PC implements HandlesPriorArcKnowledge, UseCovarianceMatrixData

jdramsey commented 8 years ago

Jeremy, Do you have a specific proposal for this? Thanks, Joe

jdramsey commented 8 years ago

Will wait for a more elaborate proposal, not sure what to do yet.