Package org.tweetyproject.math.func
Class SmoothingFunction
java.lang.Object
org.tweetyproject.math.func.SmoothingFunction
- All Implemented Interfaces:
BinaryFunction<Double,
Double, Double>
A function that smoothes two values with a smooting factor, i.e.
given a smoothing factor X and two values y1, y2 it returns X * y1 + (1-X) * y2.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionSmoothingFunction
(double factor) Creates a new smoothing function with the given factor. -
Method Summary
-
Constructor Details
-
SmoothingFunction
public SmoothingFunction(double factor) Creates a new smoothing function with the given factor.- Parameters:
factor
- some smoothing factor.
-
-
Method Details
-
eval
Description copied from interface:BinaryFunction
Evaluates the function for the given elements.- Specified by:
eval
in interfaceBinaryFunction<Double,
Double, Double> - Parameters:
val1
- some elementval2
- some element- Returns:
- the value of the element.
-