View Javadoc
1   package org.djunits.value.vfloat;
2   
3   /**
4    * Interface that represents a function object: a function that takes a single argument and returns a single value. Based on the
5    * parallelcolt FloatFunction interface.
6    * <p>
7    * Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
8    * BSD-style license. See <a href="http://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
9    * </p>
10   * $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
11   * initial version Oct 3, 2015 <br>
12   * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
13   * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
14   */
15  public abstract class FloatFunction
16  {
17      /**
18       * Applies a function to an argument.
19       * @param argument argument passed to the function.
20       * @return the result of the function.
21       */
22      public abstract float apply(float argument);
23  }