public class LinearAdjustment extends AbstractMappingFunction
Linear Adjustment function of the form y = a*x + b.
Modifier and Type | Field and Description |
---|---|
protected double |
gain |
protected double |
offset |
Constructor and Description |
---|
LinearAdjustment(double gain,
double offset) |
Modifier and Type | Method and Description |
---|---|
double |
compute(double inVal) |
double |
getGain() |
double |
getOffset() |
void |
setGain(double gain) |
void |
setOffset(double offset) |
compute, hasCategoricalInput
public double compute(double inVal)
compute
in interface MappingFunction
compute
in class AbstractMappingFunction
public double getGain()
public void setGain(double gain)
public double getOffset()
public void setOffset(double offset)
Copyright © 2016 Sensia Software LLC. All rights reserved.