comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/math/LinearFunction.java @ 3468:f37e7e8907cb

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

http://dive4elements.wald.intevation.org