comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/math/AddScaleFunction.java @ 3818:dc18457b1cef

merged flys-artifacts/pre2.7-2012-03-16
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:59 +0200
parents 388cd6fc451b
children
comparison
equal deleted inserted replaced
2456:60ab1054069d 3818:dc18457b1cef
1 package de.intevation.flys.artifacts.math;
2
3 public class AddScaleFunction
4 implements Function
5 {
6 protected double b;
7 protected double m;
8
9 public AddScaleFunction(double b, double m) {
10 this.b = b;
11 this.m = m;
12 }
13
14 @Override
15 public double value(double x) {
16 return (x + b)*m;
17 }
18 }
19 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org