public abstract class GLMModelSelection extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GLMModelSelection.ModelNotFound
Throw a
ModelNotFound exception when fail to construct a model to
explain the data. |
| Modifier | Constructor and Description |
|---|---|
protected |
GLMModelSelection(GLMProblem problem)
Constructs automatically a GLM model to explain the observations.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFactor(int factorIndex)
Adds the indexed factor.
|
protected void |
dropFactor(int factorIndex)
Drops the indexed factor.
|
int[] |
getFlags()
Gets the factor flags.
|
GeneralizedLinearModel |
getModel()
Gets the constructed model.
|
boolean |
isSelected(int factorIndex)
Checks whether a particular indexed factor is selected in the model.
|
GLMProblem |
problem()
Returns the original GLM problem.
|
protected Matrix |
subA()
Constructs a covariates subset.
|
protected GLMModelSelection(GLMProblem problem)
problem - a GLM problempublic GLMProblem problem()
protected void addFactor(int factorIndex)
factorIndex - indexprotected void dropFactor(int factorIndex)
factorIndex - index relative in the current selected factor setpublic GeneralizedLinearModel getModel() throws GLMModelSelection.ModelNotFound
GLMModelSelection.ModelNotFound - if no factor is selectedpublic int[] getFlags()
public boolean isSelected(int factorIndex)
factorIndex - the factor indextrue if the particular index is selected in the modelprotected Matrix subA()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.