public class DirectLookUpTable extends AbstractMappingFunction
This uses the input value as a direct index into an array of values to compute the output.
Modifier and Type | Field and Description |
---|---|
protected double[] |
tableData |
Constructor and Description |
---|
DirectLookUpTable(double[] tableData) |
Modifier and Type | Method and Description |
---|---|
double |
compute(double indexVal) |
double[] |
getTableData() |
void |
setTableData(double[] tableData) |
compute, hasCategoricalInput
public double compute(double indexVal)
compute
in interface MappingFunction
compute
in class AbstractMappingFunction
public double[] getTableData()
public void setTableData(double[] tableData)
Copyright © 2016 Sensia Software LLC. All rights reserved.