net.sourceforge.fuzzyservices.beans
Interface FuzzyCalculatorI

All Known Implementing Classes:
FuzzyCalculator

public interface FuzzyCalculatorI

A fuzzy calculator offers the four base aithmethic operations like a normal calculator. It supports addition, substratcion, multiplication, and devision on fuzzy numbers and intervals (even of LR type).

Version:
1.0
Author:
Uwe Weng

Method Summary
 FuzzyInterval add(FuzzyInterval operand1, FuzzyInterval operand2)
          Adds fuzzy interval operand1 to fuzzy interval operand2.
 FuzzyLRInterval add(FuzzyLRInterval operand1, FuzzyLRInterval operand2)
          Adds fuzzy LR interval operand1 to fuzzy LR interval operand2.
 FuzzyLRNumber add(FuzzyLRNumber operand1, FuzzyLRNumber operand2)
          Adds fuzzy LR number operand1 to fuzzy LR number operand2.
 FuzzyNumber add(FuzzyNumber operand1, FuzzyNumber operand2)
          Adds fuzzy number operand1 to fuzzy number operand2.
 FuzzyInterval divide(FuzzyInterval operand1, FuzzyInterval operand2)
          Devides fuzzy interval operand1 through fuzzy interval operand2.
 FuzzyLRInterval divide(FuzzyLRInterval operand1, FuzzyLRInterval operand2)
          Devides fuzzy LR interval operand1 through fuzzy LR interval operand2.
 FuzzyLRNumber divide(FuzzyLRNumber operand1, FuzzyLRNumber operand2)
          Devides fuzzy LR number operand1 through fuzzy LR number operand2.
 FuzzyNumber divide(FuzzyNumber operand1, FuzzyNumber operand2)
          Devides fuzzy number operand1 through fuzzy number operand2.
 FuzzyInterval multiply(FuzzyInterval operand1, FuzzyInterval operand2)
          Multiplies fuzzy interval operand1 with fuzzy interval operand2.
 FuzzyLRInterval multiply(FuzzyLRInterval operand1, FuzzyLRInterval operand2)
          Multiplies fuzzy LR interval operand1 with fuzzy LR interval operand2.
 FuzzyLRNumber multiply(FuzzyLRNumber operand1, FuzzyLRNumber operand2)
          Multiplies fuzzy LR number operand1 with fuzzy LR number operand2.
 FuzzyNumber multiply(FuzzyNumber operand1, FuzzyNumber operand2)
          Multiplies fuzzy number operand1 with fuzzy number operand2.
 FuzzyInterval subtract(FuzzyInterval operand1, FuzzyInterval operand2)
          Subtracts fuzzy interval operand2 from fuzzy interval operand1.
 FuzzyLRInterval subtract(FuzzyLRInterval operand1, FuzzyLRInterval operand2)
          Subtracts fuzzy LR interval operand2 from fuzzy LR interval operand1.
 FuzzyLRNumber subtract(FuzzyLRNumber operand1, FuzzyLRNumber operand2)
          Subtracts fuzzy LR number operand2 from fuzzy LR number operand1.
 FuzzyNumber subtract(FuzzyNumber operand1, FuzzyNumber operand2)
          Subtracts fuzzy number operand2 from fuzzy number operand1.
 

Method Detail

add

FuzzyInterval add(FuzzyInterval operand1,
                  FuzzyInterval operand2)
Adds fuzzy interval operand1 to fuzzy interval operand2.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

add

FuzzyLRInterval add(FuzzyLRInterval operand1,
                    FuzzyLRInterval operand2)
Adds fuzzy LR interval operand1 to fuzzy LR interval operand2.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null

add

FuzzyLRNumber add(FuzzyLRNumber operand1,
                  FuzzyLRNumber operand2)
Adds fuzzy LR number operand1 to fuzzy LR number operand2.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null

add

FuzzyNumber add(FuzzyNumber operand1,
                FuzzyNumber operand2)
Adds fuzzy number operand1 to fuzzy number operand2.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null

divide

FuzzyInterval divide(FuzzyInterval operand1,
                     FuzzyInterval operand2)
Devides fuzzy interval operand1 through fuzzy interval operand2.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null
ArithmeticException - if the membership function of operand2 is not defined at x = 0. It would be a division by zero.

divide

FuzzyLRInterval divide(FuzzyLRInterval operand1,
                       FuzzyLRInterval operand2)
Devides fuzzy LR interval operand1 through fuzzy LR interval operand2.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null
ArithmeticException - if the membership function of operand2 is not defined at x = 0. It would be a division by zero.

divide

FuzzyLRNumber divide(FuzzyLRNumber operand1,
                     FuzzyLRNumber operand2)
Devides fuzzy LR number operand1 through fuzzy LR number operand2.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null
ArithmeticException - if the membership function of operand2 is not defined at x = 0. It would be a division by zero.

divide

FuzzyNumber divide(FuzzyNumber operand1,
                   FuzzyNumber operand2)
Devides fuzzy number operand1 through fuzzy number operand2.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null
ArithmeticException - if the membership function of operand2 is not defined at x = 0. It would be a division by zero.

multiply

FuzzyInterval multiply(FuzzyInterval operand1,
                       FuzzyInterval operand2)
Multiplies fuzzy interval operand1 with fuzzy interval operand2.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null

multiply

FuzzyLRInterval multiply(FuzzyLRInterval operand1,
                         FuzzyLRInterval operand2)
Multiplies fuzzy LR interval operand1 with fuzzy LR interval operand2.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null

multiply

FuzzyLRNumber multiply(FuzzyLRNumber operand1,
                       FuzzyLRNumber operand2)
Multiplies fuzzy LR number operand1 with fuzzy LR number operand2.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null

multiply

FuzzyNumber multiply(FuzzyNumber operand1,
                     FuzzyNumber operand2)
Multiplies fuzzy number operand1 with fuzzy number operand2.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null

subtract

FuzzyInterval subtract(FuzzyInterval operand1,
                       FuzzyInterval operand2)
Subtracts fuzzy interval operand2 from fuzzy interval operand1.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null

subtract

FuzzyLRInterval subtract(FuzzyLRInterval operand1,
                         FuzzyLRInterval operand2)
Subtracts fuzzy LR interval operand2 from fuzzy LR interval operand1.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null

subtract

FuzzyLRNumber subtract(FuzzyLRNumber operand1,
                       FuzzyLRNumber operand2)
Subtracts fuzzy LR number operand2 from fuzzy LR number operand1.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null

subtract

FuzzyNumber subtract(FuzzyNumber operand1,
                     FuzzyNumber operand2)
Subtracts fuzzy number operand2 from fuzzy number operand1.

Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null


Copyright © 2007-2012 Fuzzy Services. All Rights Reserved.