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.
- Version:
- $Id: $Id
- Author:
- Frank Wimberly, Joe Ramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Mapping
Constructs matrix new mapping using the given freeParameters.- Parameters:
semIm
- aISemIm
objectparameter
- 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
-
serializableInstance
-
getValue
public double getValue()getValue.
- Returns:
- the value of the array element at (i, j).
-
setValue
public 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.- Parameters:
x
- a double
-
getParameter
Getter for the field
parameter
.- Returns:
- the paramter that this mapping maps.
-
toString
-