Package edu.cmu.tetrad.bayes
Interface CptMap
- All Superinterfaces:
Serializable
,TetradSerializable
- All Known Implementing Classes:
CptMapCounts
,CptMapProbs
An interface representing a map of probabilities or counts for nodes in a Bayesian network. Implementations of this
interface should provide methods to get the probability or count for a node at a given row and column, as well as
methods to retrieve the number of rows and columns in the map.
This interface extends the TetradSerializable interface, indicating that implementations should be serializable and follow certain guidelines for compatibility across different versions of Tetrad.
- Author:
- josephramsey
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondouble
get
(int row, int column) Retrieves the value at the specified row and column in the CptMap.int
Retrieves the number of columns in the CptMap.int
Retrieves the number of rows in the CptMap.
-
Method Details
-
get
double get(int row, int column) Retrieves the value at the specified row and column in the CptMap.- Parameters:
row
- the row index of the value to retrieve.column
- the column index of the value to retrieve.- Returns:
- the value at the specified row and column in the CptMap.
-
getNumRows
int getNumRows()Retrieves the number of rows in the CptMap.- Returns:
- the number of rows in the CptMap.
-
getNumColumns
int getNumColumns()Retrieves the number of columns in the CptMap.- Returns:
- the number of columns in the CptMap.
-