sascha@2410: package de.intevation.flys.artifacts.math;
sascha@2410: 
sascha@2410: public class AddScaleFunction
sascha@2410: implements   Function
sascha@2410: {
sascha@2410:     protected double b;
sascha@2410:     protected double m;
sascha@2410: 
sascha@2410:     public AddScaleFunction(double b, double m) {
sascha@2410:         this.b = b;
sascha@2410:         this.m = m;
sascha@2410:     }
sascha@2410: 
sascha@2410:     @Override
sascha@2410:     public double value(double x) {
sascha@2410:         return (x + b)*m;
sascha@2410:     }
sascha@2410: }
sascha@2410: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :