Package gda.function

Class SimpleAffineFunction<R extends javax.measure.Quantity<R>>

All Implemented Interfaces:
Findable, Function<javax.measure.Quantity<R>,javax.measure.Quantity<R>>

public class SimpleAffineFunction<R extends javax.measure.Quantity<R>> extends FindableFunction<R,R>
A linear function that assumes the calculated amount uses the same units as the original
  • Constructor Details

    • SimpleAffineFunction

      public SimpleAffineFunction()
  • Method Details

    • apply

      public javax.measure.Quantity<R> apply(javax.measure.Quantity<R> amount)
      Calculate scaler * amount + offset
    • getScaler

      public double getScaler()
    • setScaler

      public void setScaler(double scaler)
    • getOffset

      public double getOffset()
    • setOffset

      public void setOffset(double offset)