Function File: retval = hamacher_sum (x)
Function File: retval = hamacher_sum (x, y)

Return the Hamacher sum of the input. The Hamacher sum of two real scalars x and y is: (x + y - 2 * x * y) / (1 - x * y)

For one vector argument, apply the Hamacher sum to all of the elements of the vector. (The Hamacher sum is associative.) For one two-dimensional matrix argument, return a vector of the Hamacher sum of each column.

For two vectors or matrices of identical dimensions, or for one scalar and one vector or matrix argument, return the pair-wise Hamacher sum.

See also: algebraic_product, algebraic_sum, bounded_difference, bounded_sum, drastic_product, drastic_sum, einstein_product, einstein_sum, hamacher_product.

Package: fuzzy-logic-toolkit