public class GenericStatisticalDataStructure extends java.lang.Object implements StatisticalDataStructure
| Modifier and Type | Field and Description |
|---|---|
protected DataSet |
dataSet |
protected boolean |
isInterceptModel |
protected Matrix |
matrixX |
protected Matrix |
vectorY |
| Constructor and Description |
|---|
GenericStatisticalDataStructure(DataSet dataSet)
General constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Matrix |
computeDummyVariables(int fieldIndex,
java.lang.String refClass) |
void |
constructMatrices(java.lang.String modelDefinition)
This method builds the matrices that are required to fit the model.
|
DataSet |
getDataSet()
This method returns the DataSet instance behind the StatisticalDataStructure.
|
Matrix |
getMatrixX()
Return the design matrix of the fixed effects.
|
int |
getNumberOfObservations()
Returns the number of observations in the data structure.
|
Matrix |
getVectorY()
Return the vector of response variables.
|
boolean |
isInterceptModel()
This method returns true if the model has an intercept or false otherwise.
|
void |
setInterceptModel(boolean isInterceptModel)
This method determines whether the model has an intercept
|
protected DataSet dataSet
protected boolean isInterceptModel
protected Matrix vectorY
protected Matrix matrixX
public GenericStatisticalDataStructure(DataSet dataSet)
dataSet - the DataSet instance from which the structure is going to be extractedprotected Matrix computeDummyVariables(int fieldIndex, java.lang.String refClass) throws StatisticalDataException
StatisticalDataExceptionpublic boolean isInterceptModel()
StatisticalDataStructureisInterceptModel in interface StatisticalDataStructurepublic void setInterceptModel(boolean isInterceptModel)
StatisticalDataStructuresetInterceptModel in interface StatisticalDataStructureisInterceptModel - true if the model has an intercept or false otherwisepublic Matrix getMatrixX()
StatisticalDataStructuregetMatrixX in interface StatisticalDataStructurepublic Matrix getVectorY()
StatisticalDataStructuregetVectorY in interface StatisticalDataStructurepublic void constructMatrices(java.lang.String modelDefinition)
throws StatisticalDataException
StatisticalDataStructureconstructMatrices in interface StatisticalDataStructuremodelDefinition - the definition of the model that serves to design the matricesStatisticalDataExceptionpublic int getNumberOfObservations()
StatisticalDataStructuregetNumberOfObservations in interface StatisticalDataStructurepublic DataSet getDataSet()
StatisticalDataStructuregetDataSet in interface StatisticalDataStructure