comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/ConstantFunction.java @ 807:a645bd23c1c8

Added more javadoc. Removed trailing whitespace. gnv-artifacts/trunk@889 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 08 Apr 2010 15:24:45 +0000
parents 6cff63d0c434
children f953c9a559d8
comparison
equal deleted inserted replaced
806:2cea76f1112e 807:a645bd23c1c8
1 package de.intevation.gnv.math; 1 package de.intevation.gnv.math;
2 2
3 import org.apache.commons.math.analysis.UnivariateRealFunction; 3 import org.apache.commons.math.analysis.UnivariateRealFunction;
4 4
5 /** 5 /**
6 * Models a constant function to be used in function evaluation.
7 *
6 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> 8 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a>
7 */ 9 */
8 public class ConstantFunction 10 public class ConstantFunction
9 implements UnivariateRealFunction 11 implements UnivariateRealFunction
10 { 12 {
13 /**
14 * The constant value.
15 */
11 protected double value; 16 protected double value;
12 17
18 /**
19 * Defaut constructor.
20 */
13 public ConstantFunction() { 21 public ConstantFunction() {
14 } 22 }
15 23
24 /**
25 * Constructor to create a ConstantFunction with
26 * a given constant value.
27 * @param value The constant value.
28 */
16 public ConstantFunction(double value) { 29 public ConstantFunction(double value) {
17 this.value = value; 30 this.value = value;
18 } 31 }
19 32
20 public double value(double x) { 33 public double value(double x) {

http://dive4elements.wald.intevation.org