Package edu.cmu.tetrad.util
Class GraphSampling
java.lang.Object
edu.cmu.tetrad.util.GraphSampling
A utility for computing frequency probabilities.
Jan 29, 2023 3:28:26 PM
- Version:
- $Id: $Id
- Author:
- Kevin V. Bui (kvb2univpitt@gmail.com)
-
Method Summary
Modifier and TypeMethodDescriptionstatic Graph
createDisplayGraph
(Graph graph, ResamplingEdgeEnsemble ensemble) Create a graph for displaying and print out.static Graph
createGraphWithHighProbabilityEdges
(List<Graph> graphs) Combine all the edges from the list of graphs onto one graph with the edge type that has the highest frequency probability.static Graph
createGraphWithHighProbabilityEdges
(List<Graph> graphs, ResamplingEdgeEnsemble ensemble) createGraphWithHighProbabilityEdges.static Graph
createGraphWithoutNullEdges
(Graph graph) Create a graph from the given graph that contains no null edges.
-
Method Details
-
createGraphWithoutNullEdges
-
createDisplayGraph
Create a graph for displaying and print out.- Parameters:
graph
- aGraph
objectensemble
- aResamplingEdgeEnsemble
object- Returns:
- a
Graph
object
-
createGraphWithHighProbabilityEdges
public static Graph createGraphWithHighProbabilityEdges(List<Graph> graphs, ResamplingEdgeEnsemble ensemble) createGraphWithHighProbabilityEdges.
- Parameters:
graphs
- aList
objectensemble
- aResamplingEdgeEnsemble
object- Returns:
- a
Graph
object
-
createGraphWithHighProbabilityEdges
Combine all the edges from the list of graphs onto one graph with the edge type that has the highest frequency probability.- Parameters:
graphs
- list of graphs- Returns:
- graph containing edges with edge type of the highest probability
-