public class CategoryLookUpTable extends AbstractMappingFunction
This uses a String input value and maps it to a numerical value. This is used to map categorical values
Modifier and Type | Field and Description |
---|---|
protected double |
defaultValue |
protected Hashtable<String,Double> |
mappingTable |
Constructor and Description |
---|
CategoryLookUpTable() |
Modifier and Type | Method and Description |
---|---|
void |
addMapping(String text,
double val) |
double |
compute(String indexVal) |
double |
getDefaultValue() |
Hashtable<String,Double> |
getMappingTable() |
boolean |
hasCategoricalInput() |
void |
setDefaultValue(double defaultValue) |
compute
public double compute(String indexVal)
compute
in interface MappingFunction
compute
in class AbstractMappingFunction
public boolean hasCategoricalInput()
hasCategoricalInput
in interface MappingFunction
hasCategoricalInput
in class AbstractMappingFunction
public void addMapping(String text, double val)
public double getDefaultValue()
public void setDefaultValue(double defaultValue)
Copyright © 2016 Sensia Software LLC. All rights reserved.