Package edu.cmu.tetrad.annotation
Class AlgorithmAnnotations
java.lang.Object
edu.cmu.tetrad.annotation.AbstractAnnotations<Algorithm>
edu.cmu.tetrad.annotation.AlgorithmAnnotations
Annotations for algorithms.
Sep 26, 2017 12:19:41 AM
- Version:
- $Id: $Id
- Author:
- Kevin V. Bui (kvb2@pitt.edu)
-
Method Summary
Modifier and TypeMethodDescriptionFilters out classes annotated with theDeprecatedannotation from the provided list.Filters out algorithms that are not for the given data type.static AlgorithmAnnotationsGets the instance of this class.booleanhandlesUnmeasuredConfounder(Class clazz) Checks if the algorithm handles unmeasured confounders.booleanrequiresIndependenceTest(Class clazz) Checks if the algorithm requires independence test.booleanrequiresScore(Class clazz) Checks if the algorithm requires a score.booleantakesExternalGraph(Class clazz) Checks if the algorithm takes an external graph.booleantakesKnowledge(Class clazz) Checks if the algorithm takes knowledge.booleantakesMultipleDataset(Class clazz) Checks if the algorithm takes multiple data sets.Methods inherited from class edu.cmu.tetrad.annotation.AbstractAnnotations
filterByAnnotation, filterOutByAnnotation, getAnnotatedClasses
-
Method Details
-
getInstance
Gets the instance of this class.- Returns:
- instance of this class
-
filterOutExperimental
Filters out algorithms that are not for the given data type.- Parameters:
list- list of algorithms- Returns:
- list of algorithms that are not for the given data type
-
filterOutDeprecated
Filters out classes annotated with theDeprecatedannotation from the provided list.- Parameters:
list- the list of classes annotated withAlgorithm- Returns:
- a list of classes annotated with
Algorithmwhere none are annotated withDeprecated
-
takesMultipleDataset
Checks if the algorithm takes multiple data sets.- Parameters:
clazz- algorithm class- Returns:
- true if the algorithm takes multiple data sets
-
takesKnowledge
Checks if the algorithm takes knowledge.- Parameters:
clazz- algorithm class- Returns:
- true if the algorithm takes knowledge
-
takesExternalGraph
Checks if the algorithm takes an external graph.- Parameters:
clazz- algorithm class- Returns:
- true if the algorithm takes an external graph
-
requiresIndependenceTest
Checks if the algorithm requires independence test.- Parameters:
clazz- algorithm class- Returns:
- true if the algorithm requires independence test
-
requiresScore
Checks if the algorithm requires a score.- Parameters:
clazz- algorithm class- Returns:
- true if the algorithm requires a score
-
handlesUnmeasuredConfounder
Checks if the algorithm handles unmeasured confounders.- Parameters:
clazz- algorithm class- Returns:
- true if the algorithm handles unmeasured confounders
-