Package edu.cmu.tetrad.sem
Class Mapping
java.lang.Object
edu.cmu.tetrad.sem.Mapping
- All Implemented Interfaces:
- TetradSerializable,- Serializable
Maps a parameter to the matrix element where its value is stored in the model.
- Author:
- Frank Wimberly, Joe Ramsey
- See Also:
- 
Constructor Details- 
MappingConstructs matrix new mapping using the given freeParameters.- Parameters:
- parameter- The parameter that this maps.
- matrix- The array containing matrix[i][j], the element to be manipulated.
- i- Left coordinates of matrix[i][j].
- j- Right coordinate of matrix[i][j].
 
 
- 
- 
Method Details- 
serializableInstanceGenerates a simple exemplar of this class to test serialization.
- 
getValuepublic double getValue()- Returns:
- the value of the array element at (i, j).
 
- 
setValuepublic void setValue(double x) Sets the value of the array element at the stored coordinates (i, j). If the array is symmetric sets two elements.
- 
getParameter- Returns:
- the paramter that this mapping maps.
 
- 
toString
 
-