Save This Page
Home » mahout-collections-1.0-src » org.apache.mahout.math.function » [javadoc | source]
    1   /**
    2    * Licensed to the Apache Software Foundation (ASF) under one
    3    * or more contributor license agreements. See the NOTICE file
    4    * distributed with this work for additional information
    5    * regarding copyright ownership. The ASF licenses this file
    6    * to you under the Apache License, Version 2.0 (the
    7    * "License"); you may not use this file except in compliance
    8    * with the License. You may obtain a copy of the License at
    9    *
   10    * http://www.apache.org/licenses/LICENSE-2.0
   11    *
   12    * Unless required by applicable law or agreed to in writing,
   13    * software distributed under the License is distributed on an
   14    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   15    * KIND, either express or implied. See the License for the
   16    * specific language governing permissions and limitations
   17    * under the License.
   18    */
   19   
   20   package org.apache.mahout.math.function;
   21   
   22   /*
   23   Copyright 1999 CERN - European Organization for Nuclear Research.
   24   Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
   25   is hereby granted without fee, provided that the above copyright notice appear in all copies and 
   26   that both that copyright notice and this permission notice appear in supporting documentation. 
   27   CERN makes no representations about the suitability of this software for any purpose. 
   28   It is provided "as is" without expressed or implied warranty.
   29   */
   30   
   31   /**
   32    * Interface that represents a function object: a function that takes a single argument and returns a single value.
   33    * @see org.apache.mahout.math.map
   34    */
   35   public interface DoubleFunction {
   36   
   37     /**
   38      * Apply the function to the argument and return the result
   39      *
   40      * @param arg1 double for the argument
   41      * @return the result of applying the function
   42      */
   43     double apply(double arg1);
   44   
   45   }

Save This Page
Home » mahout-collections-1.0-src » org.apache.mahout.math.function » [javadoc | source]