public class FuzzyCos extends FuzzyOneVariableFunction
fnFactory, fuzzyNumber, intervalFactory, numberOfSections
Constructor and Description |
---|
FuzzyCos(PiecewiseLinear fuzzyNumber,
int number)
constructor that defines the input fuzzy number and the number of parts of the fuzzy number for calculation,
default fuzzyNumberFactory is used for result interval
|
FuzzyCos(PiecewiseLinear fuzzyNumber,
int number,
FuzzyNumberFactory fnFactory)
constructor that defines the input fuzzy number, the number of parts of the fuzzy number for calculation
and fuzzyNumberFactory used to create the result interval
|
Modifier and Type | Method and Description |
---|---|
protected double |
calculate(double x)
actual function that calculates value of the function for input x
|
protected PiecewiseLinear |
specialCases(double[] alphas)
function for special cases of propagation of the fuzzy number through the function
returns null if the special cases are not valid for this fuzzy number or the resulting fuzzy number
|
java.lang.String |
toString()
each function must override this function with its name
|
propagate, propagate, propagate, setfuzzyNumber
public FuzzyCos(PiecewiseLinear fuzzyNumber, int number)
fuzzyNumber
- number
- public FuzzyCos(PiecewiseLinear fuzzyNumber, int number, FuzzyNumberFactory fnFactory)
fuzzyNumber
- number
- fnFactory
- protected double calculate(double x)
FuzzyOneVariableFunction
calculate
in class FuzzyOneVariableFunction
x
- input value for which the output is calculatedprotected PiecewiseLinear specialCases(double[] alphas)
FuzzyOneVariableFunction
specialCases
in class FuzzyOneVariableFunction
public java.lang.String toString()
FuzzyOneVariableFunction
toString
in class FuzzyOneVariableFunction