Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/math/AddScaleFunction.java @ 2410:388cd6fc451b
'Reduzierte Bezugslinien' make the code more self explaining.
flys-artifacts/trunk@4040 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 10 Feb 2012 17:28:28 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2409:4e82bcd07550 | 2410:388cd6fc451b |
---|---|
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 : |