//  FILE. . . . . d:/hak/hlt/src/hlt/math/fuzzy/FuzzyOperations.java
//  EDIT BY . . . Hassan Ait-Kaci
//  ON MACHINE. . Hp-Zbook
//  STARTED ON. . Wed Mar 28 08:30:29 2018

package hlt.math.fuzzy;

/**
 * This is the interface class for fuzzy operations <tt>sup</tt> and
 * <tt>inf</tt>. These default to <tt>max</tt> and <tt>min</tt>
 * respectively.
 *
 * @see         FuzzyAlgebra
 *
 * @version     Last modified on Wed Apr 24 07:15:46 2019 by hak
 * @author      <a href="mailto:hak@acm.org">Hassan A&iuml;t-Kaci</a>
 * @copyright   &copy; <a href="http://www.hassan-ait-kaci.net/">by the author</a>
 */

public interface FuzzyOperations
{
  /**
   * The default sup is max.
   */
  default double sup (double left, double right)
  {
    return Math.max(left,right);
  }

  /**
   * The default inf is min.
   */
  default double inf (double left, double right)
  {
    return Math.min(left,right);
  }

}
