comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/math/LinearFunction.java @ 3318:dbe2f85bf160

merged flys-artifacts/2.8
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:35 +0200
parents 5642a83420f2
children
comparison
equal deleted inserted replaced
2987:98c7a46ec5ae 3318:dbe2f85bf160
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