public final class DesignVariable extends Object
Constructor and Description |
---|
DesignVariable(Variable variable,
Double lowerBound,
Double upperBound,
boolean allowMissing)
Initializes a new instance of the
com.bayesserver.optization.DesignVariable class, automatically generating the necessary design states. |
DesignVariable(Variable variable,
Double lowerBound,
Double upperBound,
boolean allowMissing,
InterventionType interventionType)
Initializes a new instance of the
DesignVariable class, automatically generating the necessary design states. |
DesignVariable(Variable variable,
List<DesignState> designStates,
boolean allowMissing)
Initializes a new instance of the
DesignVariable class. |
DesignVariable(Variable variable,
List<DesignState> designStates,
DesignEvidenceKind evidenceKind,
boolean allowMissing,
InterventionType interventionType)
Initializes a new instance of the
DesignVariable class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowMissing()
Determines whether the optimizer can consider missing values (evidence not set) on this variable.
|
List<DesignState> |
getDesignStates()
Gets the design states, one for each state in the variable.
|
DesignEvidenceKind |
getEvidenceKind()
Determines whether the optimizer uses hard or soft/virtual evidence for this variable.
|
InterventionType |
getInterventionType()
Determines the evidence intervention type for this variable.
|
Variable |
getVariable()
Gets the variable these options refer to.
|
void |
setAllowMissing(boolean value)
Determines whether the optimizer can consider missing values (evidence not set) on this variable.
|
void |
setEvidenceKind(DesignEvidenceKind value)
Determines whether the optimizer uses hard or soft/virtual evidence for this variable.
|
void |
setInterventionType(InterventionType value)
Determines the evidence intervention type for this variable.
|
public DesignVariable(Variable variable, Double lowerBound, Double upperBound, boolean allowMissing)
com.bayesserver.optization.DesignVariable
class, automatically generating the necessary design states.variable
- The optimizer input variable.lowerBound
- Optional lower bound for the variable value if continuous, or the variable states if discrete.upperBound
- Optional upper bound for the variable value if continuous, or the variable states if discrete.allowMissing
- Determines whether the algorithm is allowed to consider having no evidence set on this variable.public DesignVariable(Variable variable, Double lowerBound, Double upperBound, boolean allowMissing, InterventionType interventionType)
DesignVariable
class, automatically generating the necessary design states.variable
- The optimizer input variable.lowerBound
- Optional lower bound for the variable value if continuous, or the variable states if discrete.upperBound
- Optional upper bound for the variable value if continuous, or the variable states if discrete.allowMissing
- Determines whether the algorithm is allowed to consider having no evidence set on this variable.interventionType
- Determines whether the evidence should be an intervention or not.public DesignVariable(Variable variable, List<DesignState> designStates, boolean allowMissing)
DesignVariable
class.variable
- The optimizer input variable.designStates
- Options for each variable state.allowMissing
- Determines whether the algorithm is allowed to consider having no evidence set on this variable.public DesignVariable(Variable variable, List<DesignState> designStates, DesignEvidenceKind evidenceKind, boolean allowMissing, InterventionType interventionType)
DesignVariable
class.variable
- The optimizer input variable.designStates
- Options for each variable state.evidenceKind
- Determines whether to consider hard or soft evidence.allowMissing
- Determines whether the algorithm is allowed to consider having no evidence set on this variable.interventionType
- Determines whether the evidence should be an intervention or not.public DesignEvidenceKind getEvidenceKind()
public void setEvidenceKind(DesignEvidenceKind value)
public Variable getVariable()
public InterventionType getInterventionType()
public void setInterventionType(InterventionType value)
public List<DesignState> getDesignStates()
public boolean getAllowMissing()
public void setAllowMissing(boolean value)
Copyright © 2023. All rights reserved.