public class DiscConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
defaultMultiple
The default multiple to use for any continuous attributes that have not been specifically set.
|
java.util.Map<java.lang.Object,java.lang.Double> |
keyWiseMultiples
The multiples to use for specific attributes
|
Constructor and Description |
---|
DiscConfig() |
DiscConfig(double defaultMultiple) |
DiscConfig(java.util.Map<java.lang.Object,java.lang.Double> keyWiseMultiples,
double defaultMultiple) |
Modifier and Type | Method and Description |
---|---|
void |
addFloorDiscretizingMultipleFor(java.lang.Object key,
double nearestMultipleValue)
Sets the multiple to use for discretization for the given key.
|
DiscConfig |
copy() |
void |
setDefaultFloorDiscretizingMultiple(double defaultMultiple)
Sets the default multiple to use for continuous values that do not have specific multiples set
for them.
|
public java.util.Map<java.lang.Object,java.lang.Double> keyWiseMultiples
public double defaultMultiple
public DiscConfig()
public DiscConfig(double defaultMultiple)
public DiscConfig(java.util.Map<java.lang.Object,java.lang.Double> keyWiseMultiples, double defaultMultiple)
public void addFloorDiscretizingMultipleFor(java.lang.Object key, double nearestMultipleValue)
key
- the name of the state variable key whose discretization multiple is being set.nearestMultipleValue
- the multiple to which values are floored.public void setDefaultFloorDiscretizingMultiple(double defaultMultiple)
defaultMultiple
- the default multiple to which values are flooredpublic DiscConfig copy()